aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/st1232.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2019-10-22 09:34:59 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2019-10-28 21:04:16 -0700
commit833c2c083856ef3077b51c908ec401fa0a130d57 (patch)
tree038496d2fb911cd5b83f92d6d6ac5b605246bef0 /drivers/input/touchscreen/st1232.c
parentInput: st1232 - do not set parent device explicitly (diff)
downloadlinux-dev-833c2c083856ef3077b51c908ec401fa0a130d57.tar.xz
linux-dev-833c2c083856ef3077b51c908ec401fa0a130d57.zip
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: Matthias Fend <Matthias.Fend@wolfvision.net> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to '')
-rw-r--r--drivers/input/touchscreen/st1232.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/st1232.c b/drivers/input/touchscreen/st1232.c
index 0aee330731c9..a4a3b82ee69d 100644
--- a/drivers/input/touchscreen/st1232.c
+++ b/drivers/input/touchscreen/st1232.c
@@ -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,
}