regulator: Only apply voltage constraints from consumers that set them
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 14 May 2011 20:42:34 +0000 (13:42 -0700)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 27 May 2011 09:49:09 +0000 (10:49 +0100)
commit4aa922c024b2a194d7b68b22a66dfcf86e7838b3
tree1a26ab1f3fcb48f02642c246a29e5c9ef9492665
parenta4b4148379ef1ad460fc1aa6bcf2cde99cd91166
regulator: Only apply voltage constraints from consumers that set them

When applying the set_voltage() requests from consumers skip over those
consumers that haven't set anything, otherwise we'll come out with a
maximum voltage of zero.

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