]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Fix default constraints for fixed voltage regulators
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 28 Apr 2009 10:09:38 +0000 (11:09 +0100)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 28 Apr 2009 17:58:08 +0000 (18:58 +0100)
commitcce6b638e64a330456e05cfd6e0653e8d26c6d48
tree8693bde47f7b5dd00bd52c40b8ede3e523c55d2b
parent7ed73e8bf84d3f66d0f7c0c0a04fcf586c7e2e67
regulator: Fix default constraints for fixed voltage regulators

Default voltage constraints were being provided for fixed voltage
regulator where board constraints were not provided but these constraints
used INT_MIN as the default minimum voltage which is not a valid value
since it is less than zero. Use 1uV instead.

Also set the default values we set in the constraints themselves since
otherwise the max_uV constraint we determine will not be stored in the
actual constraint strucutre and will therefore not be used.

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