linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix pad button definition in hid-wacom.c
@ 2010-01-03 18:46 Przemysław Firszt
  2010-01-04 11:24 ` Jiri Kosina
  0 siblings, 1 reply; 7+ messages in thread
From: Przemysław Firszt @ 2010-01-03 18:46 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: marcel, jkosina

[-- Attachment #1: Type: text/plain, Size: 202 bytes --]

Hi,
Please check attached patch and apply if it's possible.
The patch was also discussed here:
http://www.mail-archive.com/linuxwacom-devel@lists.sourceforge.net/msg00128.htm

--
Regards,
Przemo Firszt

[-- Attachment #2: 0001-Fix-pad-button-definition-in-hid-wacom.c.patch --]
[-- Type: text/x-patch, Size: 916 bytes --]

>From 63d3fd45f4ef9e02a1073f1c8b1adf226ac66cf3 Mon Sep 17 00:00:00 2001
From: Przemo Firszt <przemo@firszt.eu>
Date: Sun, 3 Jan 2010 18:31:31 +0000
Subject: [PATCH] Fix pad button definition in hid-wacom.c

This fix is required for xorg driver to recognise 2 pad buttons
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
---
 drivers/hid/hid-wacom.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/hid/hid-wacom.c b/drivers/hid/hid-wacom.c
index 7475421..75ea66a 100644
--- a/drivers/hid/hid-wacom.c
+++ b/drivers/hid/hid-wacom.c
@@ -196,6 +196,9 @@ static int wacom_probe(struct hid_device *hdev,
 	/* Pad */
 	input->evbit[0] |= BIT(EV_MSC);
 	input->mscbit[0] |= BIT(MSC_SERIAL);
+	set_bit(BTN_0, input->keybit);
+	set_bit(BTN_1, input->keybit);
+	set_bit(BTN_TOOL_FINGER, input->keybit);
 
 	/* Distance, rubber and mouse */
 	input->absbit[0] |= BIT(ABS_DISTANCE);
-- 
1.6.5.7


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-01-12 13:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-03 18:46 [PATCH] Fix pad button definition in hid-wacom.c Przemysław Firszt
2010-01-04 11:24 ` Jiri Kosina
2010-01-04 15:39   ` Bastien Nocera
2010-01-09 14:11     ` Przemysław Firszt
2010-01-09 14:16       ` Jiri Kosina
2010-01-10 18:35         ` Ping
2010-01-12 13:36           ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).