Re: [PATCH RFC/RFT] regulator: ab3100: Use regulator_map_voltage_iterate()

From: Linus Walleij
Date: Sun May 20 2012 - 17:13:24 EST


On Thu, May 17, 2012 at 7:06 AM, Axel Lin <axel.lin@xxxxxxxxx> wrote:

> 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 <axel.lin@xxxxxxxxx>

Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

I think Mark already applied it too, great!

Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/