@@ -937,7 +937,7 @@ static struct ab8500_regulator_info
937937 * Variable Voltage Regulators
938938 * name, min mV, max mV,
939939 * update bank, reg, mask, enable val
940- * volt bank, reg, mask, table, table length
940+ * volt bank, reg, mask
941941 */
942942 [AB8505_LDO_AUX1 ] = {
943943 .desc = {
@@ -1151,8 +1151,6 @@ static struct ab8500_regulator_info
11511151 .voltage_reg = 0x57 ,
11521152 .voltage_mask = 0x7 ,
11531153 .voltage_shift = 4 ,
1154- .voltages = ldo_vaudio_voltages ,
1155- .voltages_len = ARRAY_SIZE (ldo_vaudio_voltages ),
11561154 },
11571155 [AB8505_LDO_ANAMIC1 ] = {
11581156 .desc = {
@@ -1234,8 +1232,6 @@ static struct ab8500_regulator_info
12341232 .voltage_bank = 0x04 ,
12351233 .voltage_reg = 0x29 ,
12361234 .voltage_mask = 0x7 ,
1237- .voltages = ldo_vana_voltages ,
1238- .voltages_len = ARRAY_SIZE (ldo_vana_voltages ),
12391235 },
12401236};
12411237
@@ -1246,7 +1242,7 @@ static struct ab8500_regulator_info
12461242 * Variable Voltage Regulators
12471243 * name, min mV, max mV,
12481244 * update bank, reg, mask, enable val
1249- * volt bank, reg, mask, table, table length
1245+ * volt bank, reg, mask
12501246 */
12511247 [AB9540_LDO_AUX1 ] = {
12521248 .desc = {
@@ -1489,7 +1485,7 @@ static struct ab8500_regulator_info
14891485 * Variable Voltage Regulators
14901486 * name, min mV, max mV,
14911487 * update bank, reg, mask, enable val
1492- * volt bank, reg, mask, table, table length
1488+ * volt bank, reg, mask
14931489 */
14941490 [AB8540_LDO_AUX1 ] = {
14951491 .desc = {
@@ -1592,6 +1588,7 @@ static struct ab8500_regulator_info
15921588 .id = AB8540_LDO_AUX5 ,
15931589 .owner = THIS_MODULE ,
15941590 .n_voltages = ARRAY_SIZE (ldo_vaux56_ab8540_voltages ),
1591+ .volt_table = ldo_vaux56_ab8540_voltages ,
15951592 },
15961593 .load_lp_uA = 20000 ,
15971594 /* values for Vaux5Regu register */
@@ -1605,8 +1602,6 @@ static struct ab8500_regulator_info
16051602 .voltage_bank = 0x04 ,
16061603 .voltage_reg = 0x33 ,
16071604 .voltage_mask = 0x3f ,
1608- .voltages = ldo_vaux56_ab8540_voltages ,
1609- .voltages_len = ARRAY_SIZE (ldo_vaux56_ab8540_voltages ),
16101605 },
16111606 [AB8540_LDO_AUX6 ] = {
16121607 .desc = {
@@ -1616,6 +1611,7 @@ static struct ab8500_regulator_info
16161611 .id = AB8540_LDO_AUX6 ,
16171612 .owner = THIS_MODULE ,
16181613 .n_voltages = ARRAY_SIZE (ldo_vaux56_ab8540_voltages ),
1614+ .volt_table = ldo_vaux56_ab8540_voltages ,
16191615 },
16201616 .load_lp_uA = 20000 ,
16211617 /* values for Vaux6Regu register */
@@ -1629,8 +1625,6 @@ static struct ab8500_regulator_info
16291625 .voltage_bank = 0x04 ,
16301626 .voltage_reg = 0x36 ,
16311627 .voltage_mask = 0x3f ,
1632- .voltages = ldo_vaux56_ab8540_voltages ,
1633- .voltages_len = ARRAY_SIZE (ldo_vaux56_ab8540_voltages ),
16341628 },
16351629 [AB8540_LDO_INTCORE ] = {
16361630 .desc = {
@@ -1743,6 +1737,7 @@ static struct ab8500_regulator_info
17431737 .id = AB8540_LDO_DMIC ,
17441738 .owner = THIS_MODULE ,
17451739 .n_voltages = ARRAY_SIZE (ldo_vdmic_voltages ),
1740+ .volt_table = ldo_vdmic_voltages ,
17461741 },
17471742 .load_lp_uA = 1000 ,
17481743 .update_bank = 0x03 ,
@@ -1752,8 +1747,6 @@ static struct ab8500_regulator_info
17521747 .voltage_bank = 0x03 ,
17531748 .voltage_reg = 0x83 ,
17541749 .voltage_mask = 0xc0 ,
1755- .voltages = ldo_vdmic_voltages ,
1756- .voltages_len = ARRAY_SIZE (ldo_vdmic_voltages ),
17571750 },
17581751
17591752 /*
0 commit comments