Skip to content

Commit 0be7b88

Browse files
committed
drivers/input/touchscreen/cy8c_touchpad: fix compile warning
drivers/input/touchscreen/cy8c_touchpad.c:77:20: warning: xfer_msg[1].flags is used uninitialized in this function [-Wuninitialized] Change-Id: I2d1f199f098b38af92037e2ebbd63c05fc4a1f35 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
1 parent 2ae8d51 commit 0be7b88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/input/touchscreen/cy8c_touchpad.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static u32 i2c_cy8ctouch_read(struct cy8c_touch *ts, u8 *buf, u32 num)
7474

7575
xfer_msg[1].addr = client->addr;
7676
xfer_msg[1].len = num;
77-
xfer_msg[1].flags |= I2C_M_RD;
77+
xfer_msg[1].flags = I2C_M_RD;
7878
xfer_msg[1].buf = buf;
7979

8080
ret = i2c_transfer(client->adapter, xfer_msg, ARRAY_SIZE(xfer_msg));

0 commit comments

Comments
 (0)