aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/tps65910.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c
index bf649cf6a0a..e31824870b9 100644
--- a/drivers/mfd/tps65910.c
+++ b/drivers/mfd/tps65910.c
@@ -71,7 +71,7 @@ static int tps65910_i2c_write(struct tps65910 *tps65910, u8 reg,
71 u8 msg[TPS65910_MAX_REGISTER + 1]; 71 u8 msg[TPS65910_MAX_REGISTER + 1];
72 int ret; 72 int ret;
73 73
74 if (bytes > (TPS65910_MAX_REGISTER + 1)) 74 if (bytes > TPS65910_MAX_REGISTER)
75 return -EINVAL; 75 return -EINVAL;
76 76
77 msg[0] = reg; 77 msg[0] = reg;