mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] HID: wacom: Replace __set_bit with input_set_capability
@ 2012-03-14 19:55 Przemo Firszt
  2012-03-14 19:55 ` [PATCH 2/2] HID: wacom: Add reporting of wheel for Intuos4 WL Przemo Firszt
  2012-03-16 11:16 ` [PATCH 1/2] HID: wacom: Replace __set_bit with input_set_capability Jiri Kosina
  0 siblings, 2 replies; 5+ messages in thread
From: Przemo Firszt @ 2012-03-14 19:55 UTC (permalink / raw)
  To: jkosina, pinglinux, chris, killertofu
  Cc: linux-kernel, linux-input, linuxwacom-devel, Przemo Firszt

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


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH 1/2] HID: wacom: Reset stylus buttons - Intuos4 WL
@ 2012-03-09 13:20 Przemo Firszt
  2012-03-09 13:20 ` [PATCH 2/2] HID: wacom: Add reporting of wheel for " Przemo Firszt
  0 siblings, 1 reply; 5+ messages in thread
From: Przemo Firszt @ 2012-03-09 13:20 UTC (permalink / raw)
  To: jkosina, pinglinux, linux-input, linux-kernel, linuxwacom-devel
  Cc: Przemo Firszt

Stylus buttons have to be resetted when going out-of-prox.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
---
 drivers/hid/hid-wacom.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/hid/hid-wacom.c b/drivers/hid/hid-wacom.c
index 2a440a6..5c25036 100644
--- a/drivers/hid/hid-wacom.c
+++ b/drivers/hid/hid-wacom.c
@@ -352,6 +352,8 @@ static void wacom_i4_parse_pen_report(struct wacom_data *wdata,
 	case 0x80: /* Out of proximity report */
 		input_report_key(input, BTN_TOUCH, 0);
 		input_report_abs(input, ABS_PRESSURE, 0);
+		input_report_key(input, BTN_STYLUS, 0);
+		input_report_key(input, BTN_STYLUS2, 0);
 		input_report_key(input, wdata->tool, 0);
 		input_report_abs(input, ABS_MISC, 0);
 		input_event(input, EV_MSC, MSC_SERIAL, wdata->serial);
-- 
1.7.6.4


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

end of thread, other threads:[~2012-03-16 11:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-14 19:55 [PATCH 1/2] HID: wacom: Replace __set_bit with input_set_capability Przemo Firszt
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
  -- strict thread matches above, loose matches on Subject: below --
2012-03-09 13:20 [PATCH 1/2] HID: wacom: Reset stylus buttons - Intuos4 WL Przemo Firszt
2012-03-09 13:20 ` [PATCH 2/2] HID: wacom: Add reporting of wheel for " Przemo Firszt

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®