summaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-07-18 08:30:11 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-08-07 21:10:25 +0400
commita5f8ae2154eeb7ed18c6e3dbf6ac095ea4c3d5cf (patch)
treeae494cdcc5ed2594f5caf9675e403365ad12b19b /COPYING
parent0d7614f09c1ebdbaa1599a5aba7593f147bf96ee (diff)
downloadlinux-a5f8ae2154eeb7ed18c6e3dbf6ac095ea4c3d5cf.tar.xz
regulator: palmas: Fix calculating selector in palmas_map_voltage_ldo
This patch fixes below issues when choosing selector: 1. Current code returns negative selector if min_uV < 900000 which is wrong. For example, it is possible to satisfy the request with selector = 1 if the requested min_uV is 850000. 2. Current code may select a voltage lower than requested min_uV. For example, if the requested min_uV is 945000, current code chooses selector = 1 which is lower than requested min_uV. DIV_ROUND_UP to avoid this case. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions