diff options
Diffstat (limited to 'include/linux/i2c')
-rw-r--r-- | include/linux/i2c/adp5588.h | 1 | ||||
-rw-r--r-- | include/linux/i2c/twl.h | 13 |
2 files changed, 12 insertions, 2 deletions
diff --git a/include/linux/i2c/adp5588.h b/include/linux/i2c/adp5588.h index cec17cf6cac2..d8341cb47b60 100644 --- a/include/linux/i2c/adp5588.h +++ b/include/linux/i2c/adp5588.h | |||
@@ -157,6 +157,7 @@ struct i2c_client; /* forward declaration */ | |||
157 | 157 | ||
158 | struct adp5588_gpio_platform_data { | 158 | struct adp5588_gpio_platform_data { |
159 | int gpio_start; /* GPIO Chip base # */ | 159 | int gpio_start; /* GPIO Chip base # */ |
160 | const char *const *names; | ||
160 | unsigned irq_base; /* interrupt base # */ | 161 | unsigned irq_base; /* interrupt base # */ |
161 | unsigned pullup_dis_mask; /* Pull-Up Disable Mask */ | 162 | unsigned pullup_dis_mask; /* Pull-Up Disable Mask */ |
162 | int (*setup)(struct i2c_client *client, | 163 | int (*setup)(struct i2c_client *client, |
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h index 1f90de0cfdbe..3993477103a5 100644 --- a/include/linux/i2c/twl.h +++ b/include/linux/i2c/twl.h | |||
@@ -171,8 +171,6 @@ static inline int twl_class_is_ ##class(void) \ | |||
171 | TWL_CLASS_IS(4030, TWL4030_CLASS_ID) | 171 | TWL_CLASS_IS(4030, TWL4030_CLASS_ID) |
172 | TWL_CLASS_IS(6030, TWL6030_CLASS_ID) | 172 | TWL_CLASS_IS(6030, TWL6030_CLASS_ID) |
173 | 173 | ||
174 | #define TWL6025_SUBCLASS BIT(4) /* TWL6025 has changed registers */ | ||
175 | |||
176 | /* | 174 | /* |
177 | * Read and write single 8-bit registers | 175 | * Read and write single 8-bit registers |
178 | */ | 176 | */ |
@@ -746,6 +744,17 @@ struct twl_regulator_driver_data { | |||
746 | void *data; | 744 | void *data; |
747 | unsigned long features; | 745 | unsigned long features; |
748 | }; | 746 | }; |
747 | /* chip-specific feature flags, for twl_regulator_driver_data.features */ | ||
748 | #define TWL4030_VAUX2 BIT(0) /* pre-5030 voltage ranges */ | ||
749 | #define TPS_SUBSET BIT(1) /* tps659[23]0 have fewer LDOs */ | ||
750 | #define TWL5031 BIT(2) /* twl5031 has different registers */ | ||
751 | #define TWL6030_CLASS BIT(3) /* TWL6030 class */ | ||
752 | #define TWL6025_SUBCLASS BIT(4) /* TWL6025 has changed registers */ | ||
753 | #define TWL4030_ALLOW_UNSUPPORTED BIT(5) /* Some voltages are possible | ||
754 | * but not officially supported. | ||
755 | * This flag is necessary to | ||
756 | * enable them. | ||
757 | */ | ||
749 | 758 | ||
750 | /*----------------------------------------------------------------------*/ | 759 | /*----------------------------------------------------------------------*/ |
751 | 760 | ||