regulator: core: Report microvolts in sysfs even with only list_voltage()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 27 Aug 2012 18:37:04 +0000 (11:37 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 7 Sep 2012 01:48:15 +0000 (09:48 +0800)
commitf2889e650a8dbd51644997aef7bae71d6ac4d423
tree911e8ff45ef616b8755ec381e4623f4fb8ac05e2
parent380a0e6f72e8d0211f48c24f293a366a53b374d7
regulator: core: Report microvolts in sysfs even with only list_voltage()

If a regulator only supports a single voltage list_voltage() can be used
to report what that voltage is so add this as one of the criteria for
creating the microvolts file in sysfs.

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