diff options
author | Thiago Farina <tfarina@chromium.org> | 2014-01-26 21:57:12 -0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-03 12:29:25 +0000 |
commit | d55efa4d9bff20c98ca05e0bf458691e6869b5a1 (patch) | |
tree | daf804222104f39c77cc2c4527e2087b46b27bdc /drivers/regulator/pfuze100-regulator.c | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) |
regulator: Make use of rdev_get_id() function where possible.
Signed-off-by: Thiago Farina <tfarina@chromium.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/pfuze100-regulator.c')
-rw-r--r-- | drivers/regulator/pfuze100-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c index ab174f20ca11..b699d4e7acc5 100644 --- a/drivers/regulator/pfuze100-regulator.c +++ b/drivers/regulator/pfuze100-regulator.c @@ -92,7 +92,7 @@ MODULE_DEVICE_TABLE(of, pfuze_dt_ids); static int pfuze100_set_ramp_delay(struct regulator_dev *rdev, int ramp_delay) { struct pfuze_chip *pfuze100 = rdev_get_drvdata(rdev); - int id = rdev->desc->id; + int id = rdev_get_id(rdev); unsigned int ramp_bits; int ret; |