]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Factor out regulator name pretty printing
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 22 Oct 2009 15:31:32 +0000 (16:31 +0100)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Thu, 17 Dec 2009 10:27:24 +0000 (10:27 +0000)
commitd986ff631cb86d6d620261e115b817a22b376cc4
tree51420f7c6cd81026eca0d6a54881b5d50cfc0988
parentda93d5a9e895cd359ece89583e4b7bcfb2055647
regulator: Factor out regulator name pretty printing

Some of the regulator API functions have code to allow the machine
constraints to override the device supplied name for the regulator
in the constraints in order to help tie logging to supplies on the
board and disambiguate when there is more than one regulator chip
in the system. Factor this code out into a new rdev_get_name()
function and use it throughout the regulator API so that we always
use the same name.

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