From: Axel Lin Date: Thu, 17 May 2012 05:06:18 +0000 (+0800) Subject: regulator: ab3100: Use regulator_map_voltage_iterate() X-Git-Tag: v3.5-rc1~177^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b13296d0701b90fa8eae5cb6b79c7a2d7a75d3b2;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed