summaryrefslogtreecommitdiff
path: root/drivers/regulator/arizona-ldo1.c
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>2014-11-10 16:43:52 +0300
committerMark Brown <broonie@kernel.org>2014-11-26 21:58:14 +0300
commit87e1e0f29f703e91c54e81f05d831432ec659dde (patch)
treea22e2d064e7c8c019da8558ae61de9fed58979e2 /drivers/regulator/arizona-ldo1.c
parent218094c975e03b3b202663901a3bbf91041fdd20 (diff)
downloadlinux-87e1e0f29f703e91c54e81f05d831432ec659dde.tar.xz
regulator: Add mode mapping function to struct regulator_desc
The "regulator-initial-mode" and "regulator-mode" DT properties allows to configure the regulator operating modes at startup or when a system enters into a susend state. But these properties use as valid values the operating modes supported by each device while the core deals with the standard operating modes. So a mapping function is needed to translate from the hardware specific modes to the standard ones. This mapping is a non-varying configuration for each regulator, so add a function pointer to struct regulator_desc that will allow drivers to define their callback to do the modes translation. Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/arizona-ldo1.c')
0 files changed, 0 insertions, 0 deletions