mfd: twl: remove pdata->irq_base/_end, no more users
[firefly-linux-kernel-4.4.55.git] / include / linux / i2c / twl.h
index 1f90de0cfdbe7ed344fccdf9eb04e774c5493adc..555382660bc40e00eb4876eae585f3f9a5e6eea6 100644 (file)
@@ -171,8 +171,6 @@ static inline int twl_class_is_ ##class(void)       \
 TWL_CLASS_IS(4030, TWL4030_CLASS_ID)
 TWL_CLASS_IS(6030, TWL6030_CLASS_ID)
 
-#define TWL6025_SUBCLASS       BIT(4)  /* TWL6025 has changed registers */
-
 /*
  * Read and write single 8-bit registers
  */
@@ -685,7 +683,6 @@ struct twl4030_audio_data {
 };
 
 struct twl4030_platform_data {
-       unsigned                                irq_base, irq_end;
        struct twl4030_clock_init_data          *clock;
        struct twl4030_bci_platform_data        *bci;
        struct twl4030_gpio_platform_data       *gpio;
@@ -746,6 +743,17 @@ struct twl_regulator_driver_data {
        void            *data;
        unsigned long   features;
 };
+/* chip-specific feature flags, for twl_regulator_driver_data.features */
+#define TWL4030_VAUX2          BIT(0)  /* pre-5030 voltage ranges */
+#define TPS_SUBSET             BIT(1)  /* tps659[23]0 have fewer LDOs */
+#define TWL5031                        BIT(2)  /* twl5031 has different registers */
+#define TWL6030_CLASS          BIT(3)  /* TWL6030 class */
+#define TWL6025_SUBCLASS       BIT(4)  /* TWL6025 has changed registers */
+#define TWL4030_ALLOW_UNSUPPORTED BIT(5) /* Some voltages are possible
+                                         * but not officially supported.
+                                         * This flag is necessary to
+                                         * enable them.
+                                         */
 
 /*----------------------------------------------------------------------*/