regulator: mt6323: Use unsigned int for volt_tables
Subsystems (2)
PATCH 1/3 regulator: mt6323: Use unsigned int for volt_tables
Make it consistent as .volt_table should be const unsigned int *.
Signed-off-by Axel Lin <[email protected]>
--- drivers/regulator/mt6323-regulator.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
drivers/regulator/mt6323-regulator.c +10 -10
@@ -118,43 +118,43 @@ static const struct regulator_linear_range buck_volt_range3[] = { REGULATOR_LINEAR_RANGE(500000, 0, 0x3f, 50000), }; -static const u32 ldo_volt_table1[] = { +static const unsigned int ldo_volt_table1[] = {3300000 ,3400000 ,3500000 ,3600000 , }; -static const u32 ldo_volt_table2[] = { +static const unsigned int ldo_volt_table2[] = {1500000 ,1800000 ,2500000 ,2800000 , }; -static const u32 ldo_volt_table3[] = { +static const unsigned int ldo_volt_table3[] = {1800000 ,3300000 , }; -static const u32 ldo_volt_table4[] = { +static const unsigned int ldo_volt_table4[] = {3000000 ,3300000 , }; -static const u32 ldo_volt_table5[] = { +static const unsigned int ldo_volt_table5[] = {1200000 ,1300000 ,1500000 ,1800000 ,2000000 ,2800000 ,3000000 ,3300000 , }; -static const u32 ldo_volt_table6[] = { +static const unsigned int ldo_volt_table6[] = {1200000 ,1300000 ,1500000 ,1800000 ,2500000 ,2800000 ,3000000 ,2000000 , }; -static const u32 ldo_volt_table7[] = { +static const unsigned int ldo_volt_table7[] = {1200000 ,1300000 ,1500000 ,1800000 , }; -static const u32 ldo_volt_table8[] = { +static const unsigned int ldo_volt_table8[] = {1800000 ,3000000 , }; -static const u32 ldo_volt_table9[] = { +static const unsigned int ldo_volt_table9[] = {1200000 ,1350000 ,1500000 ,1800000 , }; -static const u32 ldo_volt_table10[] = { +static const unsigned int ldo_volt_table10[] = {1200000 ,1300000 ,1500000 ,1800000 , };
Signature · 1 line
2.17.1
PATCH 2/3 regulator: mt6380: Use unsigned int for volt_tables
Make it consistent as .volt_table should be const unsigned int *.
Signed-off-by Axel Lin <[email protected]>
--- drivers/regulator/mt6380-regulator.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/regulator/mt6380-regulator.c +4 -4
@@ -173,19 +173,19 @@ static const struct regulator_linear_range buck_volt_range3[] = { REGULATOR_LINEAR_RANGE(1200000, 0, 0x3c, 25000), }; -static const u32 ldo_volt_table1[] = { +static const unsigned int ldo_volt_table1[] = {1400000 ,1350000 ,1300000 ,1250000 ,1200000 ,1150000 ,1100000 ,1050000 , }; -static const u32 ldo_volt_table2[] = { +static const unsigned int ldo_volt_table2[] = {2200000 ,3300000 , }; -static const u32 ldo_volt_table3[] = { +static const unsigned int ldo_volt_table3[] = {1240000 ,1390000 ,1540000 ,1840000 , }; -static const u32 ldo_volt_table4[] = { +static const unsigned int ldo_volt_table4[] = {2200000 ,3300000 , };
Signature · 1 line
2.17.1
PATCH 3/3 regulator: mt6397: Use unsigned int for volt_tables
In reply to Axel LinMake it consistent as .volt_table should be const unsigned int *.
Signed-off-by Axel Lin <[email protected]>
--- drivers/regulator/mt6397-regulator.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/regulator/mt6397-regulator.c +8 -8
@@ -123,35 +123,35 @@ static const struct regulator_linear_range buck_volt_range3[] = { REGULATOR_LINEAR_RANGE(1500000, 0, 0x1f, 20000), }; -static const u32 ldo_volt_table1[] = { +static const unsigned int ldo_volt_table1[] = {1500000 ,1800000 ,2500000 ,2800000 , }; -static const u32 ldo_volt_table2[] = { +static const unsigned int ldo_volt_table2[] = {1800000 ,3300000 , }; -static const u32 ldo_volt_table3[] = { +static const unsigned int ldo_volt_table3[] = {3000000 ,3300000 , }; -static const u32 ldo_volt_table4[] = { +static const unsigned int ldo_volt_table4[] = {1220000 ,1300000 ,1500000 ,1800000 ,2500000 ,2800000 ,3000000 ,3300000 , }; -static const u32 ldo_volt_table5[] = { +static const unsigned int ldo_volt_table5[] = {1200000 ,1300000 ,1500000 ,1800000 ,2500000 ,2800000 ,3000000 ,3300000 , }; -static const u32 ldo_volt_table5_v2[] = { +static const unsigned int ldo_volt_table5_v2[] = {1200000 ,1000000 ,1500000 ,1800000 ,2500000 ,2800000 ,3000000 ,3300000 , }; -static const u32 ldo_volt_table6[] = { +static const unsigned int ldo_volt_table6[] = {1200000 ,1300000 ,1500000 ,1800000 ,2500000 ,2800000 ,3000000 ,2000000 , }; -static const u32 ldo_volt_table7[] = { +static const unsigned int ldo_volt_table7[] = {1300000 ,1500000 ,1800000 ,2000000 ,2500000 ,2800000 ,3000000 ,3300000 , };
Signature · 1 line
2.17.1