aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2014-08-28 05:51:26 -0400
committerLee Jones <lee.jones@linaro.org>2014-09-26 03:15:45 -0400
commit7a36ceb284f76d696c80998cc38f6d1c6721ac6d (patch)
treeb90b957f6040501902c3b89583b8f2ad459ab766 /drivers/mfd
parent260a127bfbeba4bb574e7b46f07c12d4ddac57c1 (diff)
mfd: 88pm860x-i2c: Fix variable length array Sparse warning
drivers/mfd/88pm860x-i2c.c:125:33: warning: Variable length array is used. Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/88pm860x-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/88pm860x-i2c.c b/drivers/mfd/88pm860x-i2c.c
index 7063cfded699..84e313107233 100644
--- a/drivers/mfd/88pm860x-i2c.c
+++ b/drivers/mfd/88pm860x-i2c.c
@@ -122,7 +122,7 @@ static int read_device(struct i2c_client *i2c, int reg,
122static int write_device(struct i2c_client *i2c, int reg, 122static int write_device(struct i2c_client *i2c, int reg,
123 int bytes, void *src) 123 int bytes, void *src)
124{ 124{
125 unsigned char buf[bytes + 1]; 125 unsigned char buf[2];
126 struct i2c_adapter *adap = i2c->adapter; 126 struct i2c_adapter *adap = i2c->adapter;
127 struct i2c_msg msg; 127 struct i2c_msg msg;
128 int ret; 128 int ret;