summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-11-30 13:24:18 +0000
committerSamuel Ortiz <sameo@linux.intel.com>2009-12-01 11:24:19 +0100
commit7716977b6ae5a0cdd0afab5c6035c4d0ce53f599 (patch)
tree9534843e6f393dba12bb843e1d846dc19d5349b1 /drivers/mfd
parent29e553631b2a0d4eebd23db630572e1027a9967a (diff)
downloadop-kernel-dev-7716977b6ae5a0cdd0afab5c6035c4d0ce53f599.zip
op-kernel-dev-7716977b6ae5a0cdd0afab5c6035c4d0ce53f599.tar.gz
mfd: Correct WM831X_MAX_ISEL_VALUE
There was confusion between the array size and the highest ISEL value possible. Reported-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/wm831x-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/wm831x-core.c b/drivers/mfd/wm831x-core.c
index 49b7885..7f27576 100644
--- a/drivers/mfd/wm831x-core.c
+++ b/drivers/mfd/wm831x-core.c
@@ -29,7 +29,7 @@
/* Current settings - values are 2*2^(reg_val/4) microamps. These are
* exported since they are used by multiple drivers.
*/
-int wm831x_isinkv_values[WM831X_ISINK_MAX_ISEL] = {
+int wm831x_isinkv_values[WM831X_ISINK_MAX_ISEL + 1] = {
2,
2,
3,
OpenPOWER on IntegriCloud