Skip to content

Commit 18024d6

Browse files
author
Andi Shyti
committed
i2c: ljca: Remove unused "target_addr" parameter
The stop command doesn't use any address on the target: w_packet->data[0] = 0; and indeed the targed_addr parameter was unused. Remove it. Cc: Wentong Wu <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent c7e08c8 commit 18024d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/i2c/busses/i2c-ljca.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static int ljca_i2c_start(struct ljca_i2c_dev *ljca_i2c, u8 target_addr,
107107
return 0;
108108
}
109109

110-
static void ljca_i2c_stop(struct ljca_i2c_dev *ljca_i2c, u8 target_addr)
110+
static void ljca_i2c_stop(struct ljca_i2c_dev *ljca_i2c)
111111
{
112112
struct ljca_i2c_rw_packet *w_packet =
113113
(struct ljca_i2c_rw_packet *)ljca_i2c->obuf;
@@ -178,7 +178,7 @@ static int ljca_i2c_read(struct ljca_i2c_dev *ljca_i2c, u8 target_addr, u8 *data
178178
if (!ret)
179179
ret = ljca_i2c_pure_read(ljca_i2c, data, len);
180180

181-
ljca_i2c_stop(ljca_i2c, target_addr);
181+
ljca_i2c_stop(ljca_i2c);
182182

183183
return ret;
184184
}
@@ -222,7 +222,7 @@ static int ljca_i2c_write(struct ljca_i2c_dev *ljca_i2c, u8 target_addr,
222222
if (!ret)
223223
ret = ljca_i2c_pure_write(ljca_i2c, data, len);
224224

225-
ljca_i2c_stop(ljca_i2c, target_addr);
225+
ljca_i2c_stop(ljca_i2c);
226226

227227
return ret;
228228
}

0 commit comments

Comments
 (0)