aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPhilipp Zabel <philipp.zabel@gmail.com>2008-07-09 20:17:02 -0400
committerSamuel Ortiz <samuel@sortiz.org>2008-07-20 13:56:44 -0400
commit99cdb0c8c5e0e43652d25951a85bac82a1231591 (patch)
treef3fb18cc928869393b80ac7feac86bd090ad54d4 /include
parent279cac484e55317456900fe3567c7cb5bd46fd5f (diff)
mfd: let asic3 use mem resource instead of bus_shift
The bus_shift parameter in platform_data is not needed as we can tell the driver with the IOMEM_RESOURCE whether the ASIC is located on a 16bit or 32bit memory bus. The htc-egpio driver uses a more descriptive bus_width parameter, but for drivers where the register map size fixed, we don't even need this. Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/asic3.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/mfd/asic3.h b/include/linux/mfd/asic3.h
index 8f8c46c41f44..322cd6deb9f0 100644
--- a/include/linux/mfd/asic3.h
+++ b/include/linux/mfd/asic3.h
@@ -20,8 +20,6 @@ struct asic3_platform_data {
20 u16 *gpio_config; 20 u16 *gpio_config;
21 unsigned int gpio_config_num; 21 unsigned int gpio_config_num;
22 22
23 unsigned int bus_shift;
24
25 unsigned int irq_base; 23 unsigned int irq_base;
26 24
27 unsigned int gpio_base; 25 unsigned int gpio_base;
@@ -498,6 +496,7 @@ struct asic3_platform_data {
498#define ASIC3_SDIO_CTRL_LEDCtrl 0x7C 496#define ASIC3_SDIO_CTRL_LEDCtrl 0x7C
499#define ASIC3_SDIO_CTRL_SoftwareReset 0x1C0 497#define ASIC3_SDIO_CTRL_SoftwareReset 0x1C0
500 498
501#define ASIC3_MAP_SIZE 0x2000 499#define ASIC3_MAP_SIZE_32BIT 0x2000
500#define ASIC3_MAP_SIZE_16BIT 0x1000
502 501
503#endif /* __ASIC3_H__ */ 502#endif /* __ASIC3_H__ */