regulator: stubs: Make stub regulator_get_voltage() return an error
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 11 Jun 2012 12:14:24 +0000 (20:14 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 18 Jun 2012 12:39:59 +0000 (13:39 +0100)
commit08aed2f6fb09c9f8efc9258c152072ed614db226
tree3a9a1487969fe10d56d9edfcc79a9cf1e94654ee
parent230a5a1c41464f7fe5b676c21280ae4effa222c8
regulator: stubs: Make stub regulator_get_voltage() return an error

Returning 0 isn't useful, it's not even meaningful if there is a real
regulator there.

Reported-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/linux/regulator/consumer.h