aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-viperboard.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-viperboard.c b/drivers/i2c/busses/i2c-viperboard.c
index 6976e1ce3a65..7533fa34d737 100644
--- a/drivers/i2c/busses/i2c-viperboard.c
+++ b/drivers/i2c/busses/i2c-viperboard.c
@@ -118,8 +118,7 @@ static int vprbrd_i2c_addr(struct usb_device *usb_dev,
118static int vprbrd_i2c_read(struct vprbrd *vb, struct i2c_msg *msg) 118static int vprbrd_i2c_read(struct vprbrd *vb, struct i2c_msg *msg)
119{ 119{
120 int ret; 120 int ret;
121 u16 remain_len, bytes_xfer, len1, len2, 121 u16 remain_len, len1, len2, start = 0x0000;
122 start = 0x0000;
123 struct vprbrd_i2c_read_msg *rmsg = 122 struct vprbrd_i2c_read_msg *rmsg =
124 (struct vprbrd_i2c_read_msg *)vb->buf; 123 (struct vprbrd_i2c_read_msg *)vb->buf;
125 124
@@ -166,7 +165,6 @@ static int vprbrd_i2c_read(struct vprbrd *vb, struct i2c_msg *msg)
166 rmsg->header.len3 = remain_len - 512; 165 rmsg->header.len3 = remain_len - 512;
167 rmsg->header.len4 = 0x00; 166 rmsg->header.len4 = 0x00;
168 rmsg->header.len5 = 0x00; 167 rmsg->header.len5 = 0x00;
169 bytes_xfer = remain_len;
170 remain_len = 0; 168 remain_len = 0;
171 } else if (remain_len <= 1022) { 169 } else if (remain_len <= 1022) {
172 len1 = 512; 170 len1 = 512;