]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Add regulator_map_voltage_ascend() API
authorAxel Lin <axel.lin@ingics.com>
Thu, 18 Apr 2013 02:34:49 +0000 (10:34 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 18 Apr 2013 11:09:32 +0000 (12:09 +0100)
commit326ac2bd97102b6fef10ea051db8611f544281e5
tree114e44dec314e4e65ed8e8fc44a82d3aed661536
parent7cdcc37425915a9c739f888ca652ee70c4255cc7
regulator: core: Add regulator_map_voltage_ascend() API

A lot of regulator hardware has ascendant voltage list.
This patch adds regulator_map_voltage_ascend() and export it.

Drivers that have ascendant voltage list can use this as their map_voltage()
operation, this is more efficient than default regulator_map_voltage_iterate()
function.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c
include/linux/regulator/driver.h