diff options
author | Mark Brown <broonie@sirena.org.uk> | 2013-04-28 03:13:47 +0200 |
---|---|---|
committer | Mark Brown <broonie@sirena.org.uk> | 2013-04-28 03:13:47 +0200 |
commit | 22a712b90ca5411cb37df82dfb50144c87175fb4 (patch) | |
tree | 62b36d2d5f5dd1a1091b6d4e89bec90c8187c78d /drivers/regulator | |
parent | Merge remote-tracking branch 'regulator/topic/s5m8767' into v3.9-rc8 (diff) | |
parent | regulator: tps62360: Fix off-by-one shift for ramp_ctrl (diff) | |
download | linux-22a712b90ca5411cb37df82dfb50144c87175fb4.tar.xz linux-22a712b90ca5411cb37df82dfb50144c87175fb4.zip |
Merge remote-tracking branch 'regulator/topic/tps62360' into v3.9-rc8
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/tps62360-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/tps62360-regulator.c b/drivers/regulator/tps62360-regulator.c index acbd63fde415..612919c3081c 100644 --- a/drivers/regulator/tps62360-regulator.c +++ b/drivers/regulator/tps62360-regulator.c @@ -278,7 +278,7 @@ static int tps62360_init_dcdc(struct tps62360_chip *tps, __func__, REG_RAMPCTRL, ret); return ret; } - ramp_ctrl = (ramp_ctrl >> 4) & 0x7; + ramp_ctrl = (ramp_ctrl >> 5) & 0x7; /* ramp mV/us = 32/(2^ramp_ctrl) */ tps->desc.ramp_delay = DIV_ROUND_UP(32000, BIT(ramp_ctrl)); |