diff options
author | Chao Xie <chao.xie@marvell.com> | 2013-06-14 01:21:51 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-06-18 03:41:10 -0400 |
commit | 03dcc544bff9ff36b9ac5e2b992a7a4890e6edc4 (patch) | |
tree | 06dd1030dc9875f099c93674296e2b40cce3ee06 /include/linux/mfd/88pm80x.h | |
parent | 52705344d00512f0bb48c66478582bd10eb1750f (diff) |
mfd: 88pm80x: Change chip id definition and detection
Change the chip id definition and detection and then:
1. We no longer need to add PM800_CHIP_XXX for the coming revision.
2. We no longer need to pass driver_data in i2c_device_id as we
can distinguish the chips from the CHIP_ID register.
Signed-off-by: Chao Xie <chao.xie@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd/88pm80x.h')
-rw-r--r-- | include/linux/mfd/88pm80x.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/linux/mfd/88pm80x.h b/include/linux/mfd/88pm80x.h index 023e6395da87..4a66a5633031 100644 --- a/include/linux/mfd/88pm80x.h +++ b/include/linux/mfd/88pm80x.h | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <linux/regmap.h> | 17 | #include <linux/regmap.h> |
18 | #include <linux/atomic.h> | 18 | #include <linux/atomic.h> |
19 | 19 | ||
20 | #define PM80X_VERSION_MASK (0xFF) /* 80X chip ID mask */ | ||
21 | enum { | 20 | enum { |
22 | CHIP_INVALID = 0, | 21 | CHIP_INVALID = 0, |
23 | CHIP_PM800, | 22 | CHIP_PM800, |
@@ -299,8 +298,7 @@ struct pm80x_chip { | |||
299 | struct regmap *regmap; | 298 | struct regmap *regmap; |
300 | struct regmap_irq_chip *regmap_irq_chip; | 299 | struct regmap_irq_chip *regmap_irq_chip; |
301 | struct regmap_irq_chip_data *irq_data; | 300 | struct regmap_irq_chip_data *irq_data; |
302 | unsigned char version; | 301 | int type; |
303 | int id; | ||
304 | int irq; | 302 | int irq; |
305 | int irq_mode; | 303 | int irq_mode; |
306 | unsigned long wu_flag; | 304 | unsigned long wu_flag; |
@@ -361,7 +359,6 @@ static inline int pm80x_dev_resume(struct device *dev) | |||
361 | } | 359 | } |
362 | #endif | 360 | #endif |
363 | 361 | ||
364 | extern int pm80x_init(struct i2c_client *client, | 362 | extern int pm80x_init(struct i2c_client *client); |
365 | const struct i2c_device_id *id); | ||
366 | extern int pm80x_deinit(void); | 363 | extern int pm80x_deinit(void); |
367 | #endif /* __LINUX_MFD_88PM80X_H */ | 364 | #endif /* __LINUX_MFD_88PM80X_H */ |