regulator: fixed: Don't supply voltage change ops when no GPIO is given
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 21 Mar 2012 20:04:44 +0000 (20:04 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 1 Apr 2012 10:59:26 +0000 (11:59 +0100)
commit9d442061da08e679ec8e7c004fd0450e799a2af7
tree1128b231a84a87efc377bc00ff5899b5e63078a3
parentc45bb35f8b76439f4b6c0efaca510f871e9b1840
regulator: fixed: Don't supply voltage change ops when no GPIO is given

Rather than replicating the core support for always on regulators use
a different set of ops with none of the enable related operations provided
when we don't have any ops. This ensures that we automatically pick up
any enhanced support for such regulators that the core has such as the
warnings about regulation constraints that can't be used.

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