diff options
author | Nishanth Menon <nm@ti.com> | 2013-10-11 14:04:12 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-11 15:28:49 +0400 |
commit | 9a633a2bced158c57b73cf4d8e87be60473de1d2 (patch) | |
tree | 6544cdd66c6979b2c78621f5f49a20665942a6dd /drivers/regulator | |
parent | d0e639c9e06d44e713170031fe05fb60ebe680af (diff) | |
download | linux-9a633a2bced158c57b73cf4d8e87be60473de1d2.tar.xz |
regulator: ti-abb: Fix operator precedence typo
commit 40b1936e (regulator: Introduce TI Adaptive Body Bias(ABB) on-chip
LDO driver) missed a pair of brackets which cause the wrong vset data to be
picked up from efuse, resulting in bad VBB voltage values.
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/ti-abb-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/ti-abb-regulator.c b/drivers/regulator/ti-abb-regulator.c index 20c271d49dcb..b993ec570f66 100644 --- a/drivers/regulator/ti-abb-regulator.c +++ b/drivers/regulator/ti-abb-regulator.c @@ -615,7 +615,7 @@ static int ti_abb_init_table(struct device *dev, struct ti_abb *abb, pname, *volt_table, vset_mask); continue; } - info->vset = efuse_val & vset_mask >> __ffs(vset_mask); + info->vset = (efuse_val & vset_mask) >> __ffs(vset_mask); dev_dbg(dev, "[%d]v=%d vset=%x\n", i, *volt_table, info->vset); check_abb: switch (info->opp_sel) { |