From: Przemo Firszt <przemo@firszt.eu>
To: jkosina@suse.cz, pinglinux@gmail.com, chris@cnpbagwell.com,
killertofu@gmail.com
Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
linuxwacom-devel@lists.sourceforge.net,
Przemo Firszt <przemo@firszt.eu>
Subject: [PATCH 1/2] HID: wacom: Replace __set_bit with input_set_capability
Date: Wed, 14 Mar 2012 19:55:03 +0000 [thread overview]
Message-ID: <1331754904-8927-1-git-send-email-przemo@firszt.eu> (raw)
It's a trivial patch. It's doesn't change the functionality as the helper
input_set_capability does the same thing.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
---
drivers/hid/hid-wacom.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/hid/hid-wacom.c b/drivers/hid/hid-wacom.c
index 5c25036..d04e2aa 100644
--- a/drivers/hid/hid-wacom.c
+++ b/drivers/hid/hid-wacom.c
@@ -492,9 +492,7 @@ static int wacom_input_mapped(struct hid_device *hdev, struct hid_input *hi,
__set_bit(BTN_MIDDLE, input->keybit);
/* Pad */
- input->evbit[0] |= BIT(EV_MSC);
-
- __set_bit(MSC_SERIAL, input->mscbit);
+ input_set_capability(input, EV_MSC, MSC_SERIAL);
__set_bit(BTN_0, input->keybit);
__set_bit(BTN_1, input->keybit);
--
1.7.6.4
next reply other threads:[~2012-03-14 19:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-14 19:55 Przemo Firszt [this message]
2012-03-14 19:55 ` [PATCH 2/2] HID: wacom: Add reporting of wheel for Intuos4 WL Przemo Firszt
2012-03-16 0:09 ` Chris Bagwell
2012-03-16 11:16 ` [PATCH 1/2] HID: wacom: Replace __set_bit with input_set_capability 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=1331754904-8927-1-git-send-email-przemo@firszt.eu \
--to=przemo@firszt.eu \
--cc=chris@cnpbagwell.com \
--cc=jkosina@suse.cz \
--cc=killertofu@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxwacom-devel@lists.sourceforge.net \
--cc=pinglinux@gmail.com \
/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
all inboxes | Powered by JetHome®