diff options
author | Jing Lin <jinglin@codeaurora.org> | 2015-09-30 17:12:27 -0700 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:51:34 -0700 |
commit | 728e0ec2a6712356f767f6657d2edbb2f3241ab4 (patch) | |
tree | 50859872c7208d9454d964f47c3a5cc9c070ba58 /drivers | |
parent | e897567177bb5dd5c18b5d65594fa4e5bf974e6f (diff) |
input: touchscreen: maxim_sti: set INPUT_PROP_DIRECT property
Touchscreen is typical direct input device. Set the INPUT_PROP_DIRECT
property to make sure that touch coordinates are mapped correctly.
Change-Id: I398890c111a206baaca499d53e600a9de1d556bd
Signed-off-by: Jing Lin <jinglin@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/touchscreen/maxim_sti.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/maxim_sti.c b/drivers/input/touchscreen/maxim_sti.c index 0ab796f305ae..8e39346dc7d5 100644 --- a/drivers/input/touchscreen/maxim_sti.c +++ b/drivers/input/touchscreen/maxim_sti.c @@ -1307,6 +1307,7 @@ nl_process_driver_msg(struct dev_data *dd, u16 msg_id, void *msg) dd->input_dev[i]->id.bustype = BUS_SPI; __set_bit(EV_SYN, dd->input_dev[i]->evbit); __set_bit(EV_ABS, dd->input_dev[i]->evbit); + __set_bit(INPUT_PROP_DIRECT, dd->input_dev[i]->propbit); if (i == (INPUT_DEVICES - 1)) { __set_bit(EV_KEY, dd->input_dev[i]->evbit); __set_bit(BTN_TOOL_RUBBER, |