|
@@ -37,7 +37,7 @@ static inline int max8925_read_device(struct i2c_client *i2c,
|
|
|
static inline int max8925_write_device(struct i2c_client *i2c,
|
|
|
int reg, int bytes, void *src)
|
|
|
{
|
|
|
- unsigned char buf[bytes + 1];
|
|
|
+ unsigned char buf[9];
|
|
|
int ret;
|
|
|
|
|
|
buf[0] = (unsigned char)reg;
|