summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2014-01-21 10:28:47 +0100
committerStefan Agner <stefan.agner@toradex.com>2014-01-29 15:41:41 +0100
commitdda7a631ac901e4d140e8a6612c5c6b5506b6a91 (patch)
treeea131a087d653e12e149223cda35f81f6fdb4206 /drivers/input/touchscreen
parent0a4e373dc430abd981b15d392098c9e32a134acd (diff)
input: touchscreen: add ABS_X/ABS_Y axis for Fusion touchscreen
Recent evdev X-Server input driver implementation complain when only multitouch axes have been reported ("found only multitouch-axes. That shouldn't happen."). Therefor also report the primary touch detection with default axis.
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r--drivers/input/touchscreen/fusion_F0710A.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/fusion_F0710A.c b/drivers/input/touchscreen/fusion_F0710A.c
index d29baf08de91..371e4c0981d1 100644
--- a/drivers/input/touchscreen/fusion_F0710A.c
+++ b/drivers/input/touchscreen/fusion_F0710A.c
@@ -82,6 +82,10 @@ static int fusion_F0710A_register_input(void)
input_set_abs_params(dev, ABS_MT_WIDTH_MAJOR, 0, 15, 0, 0);
#endif
+ input_set_abs_params(dev, ABS_X, 0, fusion_F0710A.info.xres-1, 0, 0);
+ input_set_abs_params(dev, ABS_Y, 0, fusion_F0710A.info.yres-1, 0, 0);
+ input_set_abs_params(dev, ABS_PRESSURE, 0, 255, 0, 0);
+
ret = input_register_device(dev);
if (ret < 0)
goto bail1;
@@ -253,6 +257,11 @@ static void fusion_F0710A_wq(struct work_struct *work)
input_mt_sync(dev);
#endif /* CONFIG_ANDROID */
+ input_report_abs(dev, ABS_X, x1);
+ input_report_abs(dev, ABS_Y, y1);
+ input_report_abs(dev, ABS_PRESSURE, z1);
+ input_report_key(dev, BTN_TOUCH, fusion_F0710A.tip1);
+
input_sync(dev);
enable_irq(fusion_F0710A.client->irq);
@@ -265,6 +274,7 @@ static irqreturn_t fusion_F0710A_interrupt(int irq, void *dev_id)
disable_irq_nosync(fusion_F0710A.client->irq);
queue_work(fusion_F0710A.workq, &fusion_F0710A_work);
+
return IRQ_HANDLED;
}