From: "Przemysław Firszt" <przemo@firszt.eu>
To: linux-bluetooth@vger.kernel.org
Cc: marcel@holtmann.org, jkosina@suse.cz
Subject: [PATCH] Fix pad button definition in hid-wacom.c
Date: Sun, 03 Jan 2010 18:46:37 +0000 [thread overview]
Message-ID: <1262544397.10071.60.camel@pldmachine> (raw)
[-- 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
next reply other threads:[~2010-01-03 18:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-03 18:46 Przemysław Firszt [this message]
2010-01-04 11:24 ` [PATCH] Fix pad button definition in hid-wacom.c 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1262544397.10071.60.camel@pldmachine \
--to=przemo@firszt.eu \
--cc=jkosina@suse.cz \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).