summaryrefslogtreecommitdiffstats
path: root/Documentation/power
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-05-05 23:32:58 +0800
committerLiam Girdwood <lrg@slimlogic.co.uk>2011-05-27 10:34:37 +0100
commitba413c5972676295862797a46f9070f81691d80e (patch)
treea1cf36dc1c812a54e1f7eb480eb1032516c3b012 /Documentation/power
parent82d158397b6eeb464263a6ef6a739c4118a34720 (diff)
downloadop-kernel-dev-ba413c5972676295862797a46f9070f81691d80e.zip
op-kernel-dev-ba413c5972676295862797a46f9070f81691d80e.tar.gz
regulator: Move VCOINCELL to be the last element of mc13892_regulators array
In include/linux/mfd/mc13892.h, we define MC13892_VCOINCELL as 23. Thus VCOINCELL should be defined as 23th element in mc13892_regulators array, not the first one. This actually fixes an off-by-one bug while accessing mc13892_regulators array. For example, In mc13892_regulator_probe, we use MC13892_VCAM as array index of mc13892_regulators array. mc13892_regulators[MC13892_VCAM].desc.ops->set_mode = mc13892_vcam_set_mode; Currently, it access mc13892_regulators[12] ,which is VAUDIO not VCAM. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'Documentation/power')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud