diff options
author | Karol Lewandowski <k.lewandowsk@samsung.com> | 2012-01-24 06:31:11 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-24 15:00:33 -0500 |
commit | e371ceb89f531280d30cadbdb8371656468705b1 (patch) | |
tree | e70f872a1d2f9685891ccef68b16806d70ac2d02 /drivers/regulator/max8997.c | |
parent | 7d38a3cb9b9f6a6d31b1d19e4f07a7c0b71407d5 (diff) |
regulator: max8997: Avoid spaces in regulator names
max8997-pmic instantiated from device tree uses names, not numerical
ids to distinguish between outputs.
Replace spaces with underscores in said names to make it possible to
describe these outputs as regulators in DTS.
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/max8997.c')
-rw-r--r-- | drivers/regulator/max8997.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/regulator/max8997.c b/drivers/regulator/max8997.c index d26e8646277b..bb7cd9df9487 100644 --- a/drivers/regulator/max8997.c +++ b/drivers/regulator/max8997.c | |||
@@ -908,13 +908,13 @@ static struct regulator_desc regulators[] = { | |||
908 | }, | 908 | }, |
909 | regulator_desc_buck(7), | 909 | regulator_desc_buck(7), |
910 | { | 910 | { |
911 | .name = "EN32KHz AP", | 911 | .name = "EN32KHz_AP", |
912 | .id = MAX8997_EN32KHZ_AP, | 912 | .id = MAX8997_EN32KHZ_AP, |
913 | .ops = &max8997_fixedvolt_ops, | 913 | .ops = &max8997_fixedvolt_ops, |
914 | .type = REGULATOR_VOLTAGE, | 914 | .type = REGULATOR_VOLTAGE, |
915 | .owner = THIS_MODULE, | 915 | .owner = THIS_MODULE, |
916 | }, { | 916 | }, { |
917 | .name = "EN32KHz CP", | 917 | .name = "EN32KHz_CP", |
918 | .id = MAX8997_EN32KHZ_CP, | 918 | .id = MAX8997_EN32KHZ_CP, |
919 | .ops = &max8997_fixedvolt_ops, | 919 | .ops = &max8997_fixedvolt_ops, |
920 | .type = REGULATOR_VOLTAGE, | 920 | .type = REGULATOR_VOLTAGE, |
@@ -938,7 +938,7 @@ static struct regulator_desc regulators[] = { | |||
938 | .type = REGULATOR_VOLTAGE, | 938 | .type = REGULATOR_VOLTAGE, |
939 | .owner = THIS_MODULE, | 939 | .owner = THIS_MODULE, |
940 | }, { | 940 | }, { |
941 | .name = "CHARGER CV", | 941 | .name = "CHARGER_CV", |
942 | .id = MAX8997_CHARGER_CV, | 942 | .id = MAX8997_CHARGER_CV, |
943 | .ops = &max8997_fixedstate_ops, | 943 | .ops = &max8997_fixedstate_ops, |
944 | .type = REGULATOR_VOLTAGE, | 944 | .type = REGULATOR_VOLTAGE, |
@@ -950,7 +950,7 @@ static struct regulator_desc regulators[] = { | |||
950 | .type = REGULATOR_CURRENT, | 950 | .type = REGULATOR_CURRENT, |
951 | .owner = THIS_MODULE, | 951 | .owner = THIS_MODULE, |
952 | }, { | 952 | }, { |
953 | .name = "CHARGER TOPOFF", | 953 | .name = "CHARGER_TOPOFF", |
954 | .id = MAX8997_CHARGER_TOPOFF, | 954 | .id = MAX8997_CHARGER_TOPOFF, |
955 | .ops = &max8997_charger_fixedstate_ops, | 955 | .ops = &max8997_charger_fixedstate_ops, |
956 | .type = REGULATOR_CURRENT, | 956 | .type = REGULATOR_CURRENT, |