]> git.karo-electronics.de Git - linux-beck.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)
commit4dbd8f63f07a9e945f053d61d6f313ad98dda39d
tree1cdcdb85ff4a5965e5d74333ecd6c1bb49f12def
parent9d442061da08e679ec8e7c004fd0450e799a2af7
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