diff options
author | NeilBrown <neilb@suse.de> | 2012-05-08 15:43:59 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-05-20 11:26:58 -0400 |
commit | 9577e8c3fbc145b5d2a12d2fbc6a50031573c77d (patch) | |
tree | 8d5bcfc158a4b7c97f392d696d77eef0c160a337 /include | |
parent | cd4209ced4d3936cfe51b7b8833260457e2d9995 (diff) |
mfd: Define all twl-regulator feature flags in one place
twl-regulator has a collection of feature flags, some defined
in twl-core.c and one defined in i2c/twl.h.
This is confusing for anyone adding a new feature flag.
So collect them together and place them in twl.h immediately
after the structure in which they are initially set.
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/i2c/twl.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h index 1f90de0cfdbe..d1afedc00898 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,12 @@ 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 */ | ||
749 | 753 | ||
750 | /*----------------------------------------------------------------------*/ | 754 | /*----------------------------------------------------------------------*/ |
751 | 755 | ||