regulator: core: Fix continuous_voltage_range case in regulator_can_change_voltage
authorAxel Lin <axel.lin@ingics.com>
Wed, 12 Dec 2012 01:22:46 +0000 (09:22 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 24 Dec 2012 16:30:44 +0000 (16:30 +0000)
commit19280e40714c9a3c55ab47f76df110072f6cde5e
treebf08bbcb46cad5a071c9ec81e975c730a3ba1468
parenta49f0d1ea3ec94fc7cf33a7c36a16343b74bd565
regulator: core: Fix continuous_voltage_range case in regulator_can_change_voltage

Regulator drivers with continuous_voltage_range flag set allows not setting
n_voltages. Thus if continuous_voltage_range is set, check the constraint range
instead.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c