regulator: support multiple dummy fixed regulators
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 19 Jun 2012 15:43:56 +0000 (17:43 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 19 Jun 2012 22:22:30 +0000 (23:22 +0100)
commitdfad84aeab5f71b33a12e6803a809f698bdef5a2
treefab2197c2b5931cecf6725147dc146347b543a3e
parent485802a6c524e62b5924849dd727ddbb1497cc71
regulator: support multiple dummy fixed regulators

Currently regulator_register_fixed() uses a constant name to register a
fixed dummy regulator. This is sufficient in principle, since there is no
reason to register multiple such regulators. The user can simply supply all
consumers in one array and use it to initialise such a regulator. However,
in some cases it can be convenient to register multiple such regulators.
This is also a prerequisite for the upcoming patch, that will add a voltage
parameter to this function. The original function is provided as a wrapper
macro.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/fixed-helper.c
include/linux/regulator/fixed.h