regulator: TPS65910: Create an array for reg init data
[sitara-epos/sitara-epos-kernel.git] / include / linux / mfd / tps65910.h
index 6586209f18b80af263f28da46479c4bdf21fda45..cfc1f76d1d3c77ceec6cb7ac731e051eb5e9e1f5 100644 (file)
 #define TPS65911_REG_LDO7                              11
 #define TPS65911_REG_LDO8                              12
 
+/* Max number of TPS65910/11 regulators */
+#define TPS65910_NUM_REGS                              13
+
 /**
  * struct tps65910_board
  * Board platform data may be used to initialize regulators.
@@ -783,7 +786,7 @@ struct tps65910_board {
        int irq_base;
        int vmbch_threshold;
        int vmbch2_threshold;
-       struct regulator_init_data *tps65910_pmic_init_data;
+       struct regulator_init_data *tps65910_pmic_init_data[TPS65910_NUM_REGS];
 };
 
 /**