]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: print error value when constraints are not applied
authorNishanth Menon <nm@ti.com>
Wed, 4 Jun 2014 19:53:25 +0000 (14:53 -0500)
committerMark Brown <broonie@linaro.org>
Thu, 5 Jun 2014 11:36:51 +0000 (12:36 +0100)
commit802e432ce566df12febb6e2896bf08f1106f4dc9
treefed092a06a05b71ff2ea96ef7284876fc6b378ca
parentf58e1d2951edd86c781ca9a654cf908a91e08856
regulator: core: print error value when constraints are not applied

With commit ac090c78b740561591aba623099b09f66c398797
(regulator: core: Fix the init of DT defined fixed regulators)
We ensure that regulator must be capable of providing it's current
voltage when constraints are used, however adding the return value in
the print is a little more informative to explain the nature of the
failure involved.

So, instead of providing message such as:
smps9: failed to get the current voltage

having error value added to the message such as:
smps9: failed to get the current voltage(-22)

is a little more informative for debugging the error.

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/core.c