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:
Tao Huang 2018-02-13 09:59:38 +08:00
parent 2ae8d516c3
commit 0be7b88d66

View File

@ -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));