regulator: Complain if a voltage range is specified but can't be used
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 9 Feb 2012 13:26:13 +0000 (13:26 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 9 Feb 2012 16:22:18 +0000 (16:22 +0000)
commit4a682922817fde4d82fed4303dc902c29d7b2e4e
treee6d67dbf05d7231af5dcaec74c341fa08d82c8b8
parent43f674a322aa8a3404df5785f84dc1351a5d84b6
regulator: Complain if a voltage range is specified but can't be used

It doesn't make much sense to specify a range of voltages consumers can
use if they haven't been given permission to change the voltage. Log if
this happens, probably the user forgot to specify CHANGE_VOLTAGE.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
drivers/regulator/core.c