Axel Lin 7f217d36dc regulator: arizona-micsupp: Fix choosing selector in arizona_micsupp_map_voltage
If min_uV is in the range of: 3250001~3269999,
current code uses the equation:
        selector = DIV_ROUND_UP(min_uV - 1700000, 50000);
Then selector will be 32.
Then arizona_micsupp_list_voltage returns -EINVAL for this case which is wrong.

This patch fixes this issue:
If min_uV > 3200000, selector should be ARIZONA_MICSUPP_MAX_SELECTOR.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2012-06-26 11:48:05 +01:00
..
2012-06-25 10:11:40 +01:00
2012-06-25 10:11:40 +01:00
2012-06-21 10:38:37 +01:00
2012-05-16 09:48:37 +01:00
2012-05-21 16:49:16 -07:00
2012-06-25 10:11:40 +01:00
2012-05-29 11:53:11 -07:00