regulator fixed: Do not report enumaratable voltages if there are none
authorSascha Hauer <s.hauer@pengutronix.de>
Sat, 3 Mar 2012 11:40:01 +0000 (12:40 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 11 Mar 2012 20:48:51 +0000 (20:48 +0000)
commit1c37f8a838fa8b1e98a984893bd4f1a8a9849421
treebba5a8d8725227b01a742243c7592ac34ba821af
parentab353c2375258fced2967dfe66ff109098797cf1
regulator fixed: Do not report enumaratable voltages if there are none

If used as a dummy voltage provider the fixed regulator should
not set n_voltages to make the core accept the device.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/fixed.c