projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51e2fc0
)
regulator: s2mpa01: Use rdev_get_id() to access id of regulator
author
Krzysztof Kozlowski
<
[email protected]
>
Tue, 6 May 2014 06:37:38 +0000
(08:37 +0200)
committer
Mark Brown
<
[email protected]
>
Sat, 17 May 2014 13:30:06 +0000
(14:30 +0100)
Use regulator API rdev_get_id() to access id of regulator.
Signed-off-by: Krzysztof Kozlowski <
[email protected]
>
Reviewed-by: Axel Lin <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
drivers/regulator/s2mpa01.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/s2mpa01.c
b/drivers/regulator/s2mpa01.c
index cab1a2b9efc55b471f13edd5963fd8e6ba817ffb..b71e11a6c7735d976a2f0fd5336209f3ad57e9ee 100644
(file)
--- a/
drivers/regulator/s2mpa01.c
+++ b/
drivers/regulator/s2mpa01.c
@@
-61,7
+61,7
@@
static int s2mpa01_regulator_set_voltage_time_sel(struct regulator_dev *rdev,
unsigned int ramp_delay = 0;
int old_volt, new_volt;
- switch (rdev
->desc->id
) {
+ switch (rdev
_get_id(rdev)
) {
case S2MPA01_BUCK2:
case S2MPA01_BUCK4:
ramp_delay = s2mpa01->ramp_delay24;
@@
-102,7
+102,7
@@
static int s2mpa01_set_ramp_delay(struct regulator_dev *rdev, int ramp_delay)
unsigned int ramp_enable = 1, enable_shift = 0;
int ret;
- switch (rdev
->desc->id
) {
+ switch (rdev
_get_id(rdev)
) {
case S2MPA01_BUCK1:
enable_shift = S2MPA01_BUCK1_RAMP_EN_SHIFT;
if (!ramp_delay) {