mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
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>
This commit is contained in:
parent
2ae8d516c3
commit
0be7b88d66
|
|
@ -74,7 +74,7 @@ static u32 i2c_cy8ctouch_read(struct cy8c_touch *ts, u8 *buf, u32 num)
|
|||
|
||||
xfer_msg[1].addr = client->addr;
|
||||
xfer_msg[1].len = num;
|
||||
xfer_msg[1].flags |= I2C_M_RD;
|
||||
xfer_msg[1].flags = I2C_M_RD;
|
||||
xfer_msg[1].buf = buf;
|
||||
|
||||
ret = i2c_transfer(client->adapter, xfer_msg, ARRAY_SIZE(xfer_msg));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user