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)
commit1083c39346d482b9001944d05c09191027892226
tree51420f7c6cd81026eca0d6a54881b5d50cfc0988
parent8f031b48cd2eab5fc3e4dffa06706372e90d63fe
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