]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: gpio-regulator: Set the smallest voltage/current in the specified range
authorAxel Lin <axel.lin@gmail.com>
Thu, 22 Mar 2012 06:08:04 +0000 (14:08 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 1 Apr 2012 10:59:26 +0000 (11:59 +0100)
commit19a747c7c6d55348ac69dc1246d5ae9bafe7878b
tree1cdcdb85ff4a5965e5d74333ecd6c1bb49f12def
parente63247004f806a83357c586c276043278b02c263
regulator: gpio-regulator: Set the smallest voltage/current in the specified range

Do not assume the gpio regulator states map is sorted in any order.
This patch ensures we always set the smallest voltage/current that falls within
the specified range.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/gpio-regulator.c