diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-10-09 05:49:00 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-10-17 09:21:20 -0400 |
commit | 8620ca9f77b71a0069a6151e859b988117ef1fa5 (patch) | |
tree | 625d0a04fb027eaa2a3d46bca2a5561f6e690faf | |
parent | 24282a1ca33b4a2cdfb907fb7a3ba4d0f6e93311 (diff) |
regulator: tps65090: rename driver name and regulator name
To make the names proper and more appropriate:
Rename the driver name from tps65090-regulator to tps65090-pmic.
Rename the regulators from TPS65090_ID_* to TPS65090_REGULATOR_*
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | drivers/regulator/tps65090-regulator.c | 16 | ||||
-rw-r--r-- | include/linux/mfd/tps65090.h | 24 |
2 files changed, 20 insertions, 20 deletions
diff --git a/drivers/regulator/tps65090-regulator.c b/drivers/regulator/tps65090-regulator.c index 5f7f9311024e..584a185f89e1 100644 --- a/drivers/regulator/tps65090-regulator.c +++ b/drivers/regulator/tps65090-regulator.c | |||
@@ -41,7 +41,7 @@ static struct regulator_ops tps65090_ops = { | |||
41 | { \ | 41 | { \ |
42 | .name = "TPS65090_RAILS"#_id, \ | 42 | .name = "TPS65090_RAILS"#_id, \ |
43 | .supply_name = _sname, \ | 43 | .supply_name = _sname, \ |
44 | .id = TPS65090_ID_##_id, \ | 44 | .id = TPS65090_REGULATOR_##_id, \ |
45 | .ops = &_ops, \ | 45 | .ops = &_ops, \ |
46 | .enable_reg = _en_reg, \ | 46 | .enable_reg = _en_reg, \ |
47 | .enable_mask = BIT(0), \ | 47 | .enable_mask = BIT(0), \ |
@@ -65,9 +65,9 @@ static struct regulator_desc tps65090_regulator_desc[] = { | |||
65 | static inline bool is_dcdc(int id) | 65 | static inline bool is_dcdc(int id) |
66 | { | 66 | { |
67 | switch (id) { | 67 | switch (id) { |
68 | case TPS65090_ID_DCDC1: | 68 | case TPS65090_REGULATOR_DCDC1: |
69 | case TPS65090_ID_DCDC2: | 69 | case TPS65090_REGULATOR_DCDC2: |
70 | case TPS65090_ID_DCDC3: | 70 | case TPS65090_REGULATOR_DCDC3: |
71 | return true; | 71 | return true; |
72 | default: | 72 | default: |
73 | return false; | 73 | return false; |
@@ -133,14 +133,14 @@ static int __devinit tps65090_regulator_probe(struct platform_device *pdev) | |||
133 | return -EINVAL; | 133 | return -EINVAL; |
134 | } | 134 | } |
135 | 135 | ||
136 | pmic = devm_kzalloc(&pdev->dev, TPS65090_ID_MAX * sizeof(*pmic), | 136 | pmic = devm_kzalloc(&pdev->dev, TPS65090_REGULATOR_MAX * sizeof(*pmic), |
137 | GFP_KERNEL); | 137 | GFP_KERNEL); |
138 | if (!pmic) { | 138 | if (!pmic) { |
139 | dev_err(&pdev->dev, "mem alloc for pmic failed\n"); | 139 | dev_err(&pdev->dev, "mem alloc for pmic failed\n"); |
140 | return -ENOMEM; | 140 | return -ENOMEM; |
141 | } | 141 | } |
142 | 142 | ||
143 | for (num = 0; num < TPS65090_ID_MAX; num++) { | 143 | for (num = 0; num < TPS65090_REGULATOR_MAX; num++) { |
144 | tps_pdata = tps65090_pdata->reg_pdata[num]; | 144 | tps_pdata = tps65090_pdata->reg_pdata[num]; |
145 | 145 | ||
146 | ri = &pmic[num]; | 146 | ri = &pmic[num]; |
@@ -196,7 +196,7 @@ static int __devexit tps65090_regulator_remove(struct platform_device *pdev) | |||
196 | struct tps65090_regulator *ri; | 196 | struct tps65090_regulator *ri; |
197 | int num; | 197 | int num; |
198 | 198 | ||
199 | for (num = 0; num < TPS65090_ID_MAX; ++num) { | 199 | for (num = 0; num < TPS65090_REGULATOR_MAX; ++num) { |
200 | ri = &pmic[num]; | 200 | ri = &pmic[num]; |
201 | regulator_unregister(ri->rdev); | 201 | regulator_unregister(ri->rdev); |
202 | } | 202 | } |
@@ -205,7 +205,7 @@ static int __devexit tps65090_regulator_remove(struct platform_device *pdev) | |||
205 | 205 | ||
206 | static struct platform_driver tps65090_regulator_driver = { | 206 | static struct platform_driver tps65090_regulator_driver = { |
207 | .driver = { | 207 | .driver = { |
208 | .name = "tps65090-regulator", | 208 | .name = "tps65090-pmic", |
209 | .owner = THIS_MODULE, | 209 | .owner = THIS_MODULE, |
210 | }, | 210 | }, |
211 | .probe = tps65090_regulator_probe, | 211 | .probe = tps65090_regulator_probe, |
diff --git a/include/linux/mfd/tps65090.h b/include/linux/mfd/tps65090.h index d06c63335a2a..958bf155097c 100644 --- a/include/linux/mfd/tps65090.h +++ b/include/linux/mfd/tps65090.h | |||
@@ -26,19 +26,19 @@ | |||
26 | 26 | ||
27 | /* TPS65090 Regulator ID */ | 27 | /* TPS65090 Regulator ID */ |
28 | enum { | 28 | enum { |
29 | TPS65090_ID_DCDC1, | 29 | TPS65090_REGULATOR_DCDC1, |
30 | TPS65090_ID_DCDC2, | 30 | TPS65090_REGULATOR_DCDC2, |
31 | TPS65090_ID_DCDC3, | 31 | TPS65090_REGULATOR_DCDC3, |
32 | TPS65090_ID_FET1, | 32 | TPS65090_REGULATOR_FET1, |
33 | TPS65090_ID_FET2, | 33 | TPS65090_REGULATOR_FET2, |
34 | TPS65090_ID_FET3, | 34 | TPS65090_REGULATOR_FET3, |
35 | TPS65090_ID_FET4, | 35 | TPS65090_REGULATOR_FET4, |
36 | TPS65090_ID_FET5, | 36 | TPS65090_REGULATOR_FET5, |
37 | TPS65090_ID_FET6, | 37 | TPS65090_REGULATOR_FET6, |
38 | TPS65090_ID_FET7, | 38 | TPS65090_REGULATOR_FET7, |
39 | 39 | ||
40 | /* Last entry for maximum ID */ | 40 | /* Last entry for maximum ID */ |
41 | TPS65090_ID_MAX, | 41 | TPS65090_REGULATOR_MAX, |
42 | }; | 42 | }; |
43 | 43 | ||
44 | struct tps65090 { | 44 | struct tps65090 { |
@@ -72,7 +72,7 @@ struct tps65090_platform_data { | |||
72 | int irq_base; | 72 | int irq_base; |
73 | int num_subdevs; | 73 | int num_subdevs; |
74 | struct tps65090_subdev_info *subdevs; | 74 | struct tps65090_subdev_info *subdevs; |
75 | struct tps65090_regulator_plat_data *reg_pdata[TPS65090_ID_MAX]; | 75 | struct tps65090_regulator_plat_data *reg_pdata[TPS65090_REGULATOR_MAX]; |
76 | }; | 76 | }; |
77 | 77 | ||
78 | /* | 78 | /* |