summaryrefslogtreecommitdiff
path: root/drivers/of
diff options
context:
space:
mode:
authorCarlo Caione <carlo@caione.org>2014-03-05 21:11:29 (GMT)
committerMark Brown <broonie@linaro.org>2014-03-06 09:30:10 (GMT)
commitca5d1b3524b4d90a2e2f1f71583c1dca6b96fd92 (patch)
treeacf10cbf9247ec8d7f8437faa9ba154a1fb8665e /drivers/of
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
downloadlinux-ca5d1b3524b4d90a2e2f1f71583c1dca6b96fd92.tar.xz
regulator: helpers: Modify helpers enabling multi-bit control
This patch extends the regulator helpers to account for device that use multiple bits for control when using regmap enable/disable/bypass ops. The actual regulator helpers wrongly assume that the regulator control is always performed using single bits, using in the regulator_desc struct only two parameters *_reg and *_mask defining register and mask for control. This patch extends this struct and introduces the helpers to take into account devices where control is performed using multiple bits and specific multi-bit values are used for enabling/disabling/bypassing the regulator. Signed-off-by: Carlo Caione <carlo@caione.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/of')
0 files changed, 0 insertions, 0 deletions