]> git.karo-electronics.de Git - linux-beck.git/commit
regulator: max77686: Use regulator_map_voltage_linear for simple linear mappings
authorAxel Lin <axel.lin@gmail.com>
Sun, 3 Jun 2012 14:46:14 +0000 (22:46 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 3 Jun 2012 19:11:09 +0000 (20:11 +0100)
commit2e3f7f26e1323fb302921c4575a499710636d531
treeb0c79916e9eda99cc162cd379e80651af9c63ff9
parentfcbb71f6f8084b74fef54e40c9e515105ccc4e6e
regulator: max77686: Use regulator_map_voltage_linear for simple linear mappings

Both max77686_ops and max77686_buck_dvs_ops use simple linear voltage maps.
Thus use regulator_map_voltage_linear is more efficient than using the defult
regulator_map_voltage_iterate.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/max77686.c