ft5x06: Set input property bit to indicate a direct input device

Property bit is checked in userspace and must be set in
driver in order to be recognized correctly since it defaults
to mouse pointer.

Change-Id: Ibdc78547e6376e6db54db75b1423718d13afaaa7
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
This commit is contained in:
Amy Maloche 2012-06-20 11:03:56 -07:00 committed by Gerrit - the friendly Code Review server
parent 1108a17322
commit 5d244099f0

View file

@ -444,6 +444,7 @@ static int ft5x06_ts_probe(struct i2c_client *client,
__set_bit(EV_KEY, input_dev->evbit);
__set_bit(EV_ABS, input_dev->evbit);
__set_bit(BTN_TOUCH, input_dev->keybit);
__set_bit(INPUT_PROP_DIRECT, input_dev->propbit);
input_set_abs_params(input_dev, ABS_MT_POSITION_X, 0,
pdata->x_max, 0, 0);