diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-03-08 21:22:20 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-03-11 16:49:33 -0400 |
commit | 94732b97c39859427cf99c34fc9de9750be7e5a5 (patch) | |
tree | cdc4e0af81e8c190010b87361e54d91a75eea650 /drivers | |
parent | 0f8b9c774442fa0ada36e5a0de9567588cc964cd (diff) |
regulator: Rename set_voltage_sel callback function name to *_sel
This change improves readability.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/regulator/tps65910-regulator.c | 16 | ||||
-rw-r--r-- | drivers/regulator/tps65912-regulator.c | 12 |
2 files changed, 15 insertions, 13 deletions
diff --git a/drivers/regulator/tps65910-regulator.c b/drivers/regulator/tps65910-regulator.c index b0533c111571..4ac0058dbf82 100644 --- a/drivers/regulator/tps65910-regulator.c +++ b/drivers/regulator/tps65910-regulator.c | |||
@@ -685,8 +685,8 @@ static int tps65911_get_voltage(struct regulator_dev *dev) | |||
685 | return (LDO_MIN_VOLT + value * step_mv) * 1000; | 685 | return (LDO_MIN_VOLT + value * step_mv) * 1000; |
686 | } | 686 | } |
687 | 687 | ||
688 | static int tps65910_set_voltage_dcdc(struct regulator_dev *dev, | 688 | static int tps65910_set_voltage_dcdc_sel(struct regulator_dev *dev, |
689 | unsigned selector) | 689 | unsigned selector) |
690 | { | 690 | { |
691 | struct tps65910_reg *pmic = rdev_get_drvdata(dev); | 691 | struct tps65910_reg *pmic = rdev_get_drvdata(dev); |
692 | int id = rdev_get_id(dev), vsel; | 692 | int id = rdev_get_id(dev), vsel; |
@@ -723,7 +723,8 @@ static int tps65910_set_voltage_dcdc(struct regulator_dev *dev, | |||
723 | return 0; | 723 | return 0; |
724 | } | 724 | } |
725 | 725 | ||
726 | static int tps65910_set_voltage(struct regulator_dev *dev, unsigned selector) | 726 | static int tps65910_set_voltage_sel(struct regulator_dev *dev, |
727 | unsigned selector) | ||
727 | { | 728 | { |
728 | struct tps65910_reg *pmic = rdev_get_drvdata(dev); | 729 | struct tps65910_reg *pmic = rdev_get_drvdata(dev); |
729 | int reg, id = rdev_get_id(dev); | 730 | int reg, id = rdev_get_id(dev); |
@@ -749,7 +750,8 @@ static int tps65910_set_voltage(struct regulator_dev *dev, unsigned selector) | |||
749 | return -EINVAL; | 750 | return -EINVAL; |
750 | } | 751 | } |
751 | 752 | ||
752 | static int tps65911_set_voltage(struct regulator_dev *dev, unsigned selector) | 753 | static int tps65911_set_voltage_sel(struct regulator_dev *dev, |
754 | unsigned selector) | ||
753 | { | 755 | { |
754 | struct tps65910_reg *pmic = rdev_get_drvdata(dev); | 756 | struct tps65910_reg *pmic = rdev_get_drvdata(dev); |
755 | int reg, id = rdev_get_id(dev); | 757 | int reg, id = rdev_get_id(dev); |
@@ -867,7 +869,7 @@ static struct regulator_ops tps65910_ops_dcdc = { | |||
867 | .set_mode = tps65910_set_mode, | 869 | .set_mode = tps65910_set_mode, |
868 | .get_mode = tps65910_get_mode, | 870 | .get_mode = tps65910_get_mode, |
869 | .get_voltage = tps65910_get_voltage_dcdc, | 871 | .get_voltage = tps65910_get_voltage_dcdc, |
870 | .set_voltage_sel = tps65910_set_voltage_dcdc, | 872 | .set_voltage_sel = tps65910_set_voltage_dcdc_sel, |
871 | .list_voltage = tps65910_list_voltage_dcdc, | 873 | .list_voltage = tps65910_list_voltage_dcdc, |
872 | }; | 874 | }; |
873 | 875 | ||
@@ -888,7 +890,7 @@ static struct regulator_ops tps65910_ops = { | |||
888 | .set_mode = tps65910_set_mode, | 890 | .set_mode = tps65910_set_mode, |
889 | .get_mode = tps65910_get_mode, | 891 | .get_mode = tps65910_get_mode, |
890 | .get_voltage = tps65910_get_voltage, | 892 | .get_voltage = tps65910_get_voltage, |
891 | .set_voltage_sel = tps65910_set_voltage, | 893 | .set_voltage_sel = tps65910_set_voltage_sel, |
892 | .list_voltage = tps65910_list_voltage, | 894 | .list_voltage = tps65910_list_voltage, |
893 | }; | 895 | }; |
894 | 896 | ||
@@ -899,7 +901,7 @@ static struct regulator_ops tps65911_ops = { | |||
899 | .set_mode = tps65910_set_mode, | 901 | .set_mode = tps65910_set_mode, |
900 | .get_mode = tps65910_get_mode, | 902 | .get_mode = tps65910_get_mode, |
901 | .get_voltage = tps65911_get_voltage, | 903 | .get_voltage = tps65911_get_voltage, |
902 | .set_voltage_sel = tps65911_set_voltage, | 904 | .set_voltage_sel = tps65911_set_voltage_sel, |
903 | .list_voltage = tps65911_list_voltage, | 905 | .list_voltage = tps65911_list_voltage, |
904 | }; | 906 | }; |
905 | 907 | ||
diff --git a/drivers/regulator/tps65912-regulator.c b/drivers/regulator/tps65912-regulator.c index b685757a2b8e..679709536408 100644 --- a/drivers/regulator/tps65912-regulator.c +++ b/drivers/regulator/tps65912-regulator.c | |||
@@ -588,8 +588,8 @@ static int tps65912_get_voltage_dcdc(struct regulator_dev *dev) | |||
588 | return tps65912_list_voltage_dcdc(dev, vsel); | 588 | return tps65912_list_voltage_dcdc(dev, vsel); |
589 | } | 589 | } |
590 | 590 | ||
591 | static int tps65912_set_voltage_dcdc(struct regulator_dev *dev, | 591 | static int tps65912_set_voltage_dcdc_sel(struct regulator_dev *dev, |
592 | unsigned selector) | 592 | unsigned selector) |
593 | { | 593 | { |
594 | struct tps65912_reg *pmic = rdev_get_drvdata(dev); | 594 | struct tps65912_reg *pmic = rdev_get_drvdata(dev); |
595 | struct tps65912 *mfd = pmic->mfd; | 595 | struct tps65912 *mfd = pmic->mfd; |
@@ -618,8 +618,8 @@ static int tps65912_get_voltage_ldo(struct regulator_dev *dev) | |||
618 | return tps65912_vsel_to_uv_ldo(vsel); | 618 | return tps65912_vsel_to_uv_ldo(vsel); |
619 | } | 619 | } |
620 | 620 | ||
621 | static int tps65912_set_voltage_ldo(struct regulator_dev *dev, | 621 | static int tps65912_set_voltage_ldo_sel(struct regulator_dev *dev, |
622 | unsigned selector) | 622 | unsigned selector) |
623 | { | 623 | { |
624 | struct tps65912_reg *pmic = rdev_get_drvdata(dev); | 624 | struct tps65912_reg *pmic = rdev_get_drvdata(dev); |
625 | struct tps65912 *mfd = pmic->mfd; | 625 | struct tps65912 *mfd = pmic->mfd; |
@@ -650,7 +650,7 @@ static struct regulator_ops tps65912_ops_dcdc = { | |||
650 | .set_mode = tps65912_set_mode, | 650 | .set_mode = tps65912_set_mode, |
651 | .get_mode = tps65912_get_mode, | 651 | .get_mode = tps65912_get_mode, |
652 | .get_voltage = tps65912_get_voltage_dcdc, | 652 | .get_voltage = tps65912_get_voltage_dcdc, |
653 | .set_voltage_sel = tps65912_set_voltage_dcdc, | 653 | .set_voltage_sel = tps65912_set_voltage_dcdc_sel, |
654 | .list_voltage = tps65912_list_voltage_dcdc, | 654 | .list_voltage = tps65912_list_voltage_dcdc, |
655 | }; | 655 | }; |
656 | 656 | ||
@@ -660,7 +660,7 @@ static struct regulator_ops tps65912_ops_ldo = { | |||
660 | .enable = tps65912_reg_enable, | 660 | .enable = tps65912_reg_enable, |
661 | .disable = tps65912_reg_disable, | 661 | .disable = tps65912_reg_disable, |
662 | .get_voltage = tps65912_get_voltage_ldo, | 662 | .get_voltage = tps65912_get_voltage_ldo, |
663 | .set_voltage_sel = tps65912_set_voltage_ldo, | 663 | .set_voltage_sel = tps65912_set_voltage_ldo_sel, |
664 | .list_voltage = tps65912_list_voltage_ldo, | 664 | .list_voltage = tps65912_list_voltage_ldo, |
665 | }; | 665 | }; |
666 | 666 | ||