Commit 833c2c08 authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: st1232 - note that the receive buffer is DMA-safe

The receiving buffer is allocated separately from the main driver
data structure, and is naturally DMA-safe, so mark it as such when
building I2C transfer message.
Tested-by: default avatarMatthias Fend <Matthias.Fend@wolfvision.net>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent b67b6f59
......@@ -66,7 +66,7 @@ static int st1232_ts_read_data(struct st1232_ts_data *ts)
},
{
.addr = client->addr,
.flags = I2C_M_RD,
.flags = I2C_M_RD | I2C_M_DMA_SAFE,
.len = ts->read_buf_len,
.buf = ts->read_buf,
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment