commit | b13296d0701b90fa8eae5cb6b79c7a2d7a75d3b2 | [log] [tgz] |
---|---|---|
author | Axel Lin <[email protected]> | Thu May 17 13:06:18 2012 +0800 |
committer | Mark Brown <[email protected]> | Fri May 18 08:39:57 2012 +0100 |
tree | ca9f027bdddd4fe3a3850aec6eb1f0747262fae8 | |
parent | 8b22285fd710976b2a1c6f625ca64dfbfe25ba2b [diff] |
regulator: ab3100: Use regulator_map_voltage_iterate() regulator_map_voltage_iterate() is for drivers implementing set_voltage_sel() and list_voltage() to use it as their map_voltage() operation. In this case, regulator_map_voltage_iterate() happen to be doing the same thing as ab3100_get_best_voltage_index() function. So we can use it to replace ab3100_get_best_voltage_index() function. Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Mark Brown <[email protected]>