regulator: 88pm800: Add missing n_voltages setting for bucks
authorAxel Lin <axel.lin@ingics.com>
Fri, 19 Jul 2013 05:06:22 +0000 (13:06 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 19 Jul 2013 18:08:37 +0000 (19:08 +0100)
commit6625d9d297f28741d42a4ba712338a05f7464bd6
treeb03364d11eb0250c0449ec65c572507e1cf7dd75
parent7c45f60b42e0f916aaf31fedf8e8afeaf585ee90
regulator: 88pm800: Add missing n_voltages setting for bucks

Some regulator APIs are broken if n_voltages setting is not set.
e.g. regulator_count_voltages(), regulator_list_voltage(), and
regulator_can_change_voltage() do not work if n_voltages setting is missing.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/88pm800.c