linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] HID: wacom: Use calculated pkglen for wireless touch interface
@ 2015-08-03 17:17 Jason Gerecke
  2015-08-03 17:17 ` [PATCH 2/3] HID: wacom: Replace WACOM_QUIRK_MONITOR with WACOM_DEVICETYPE_WL_MONITOR Jason Gerecke
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jason Gerecke @ 2015-08-03 17:17 UTC (permalink / raw)
  To: Jiri Kosina, Benjamin Tissoires
  Cc: Aaron Skomra, Ping Cheng, linux-input, Jason Gerecke,
	Jason Gerecke

Commit 01c846f introduced the 'wacom_compute_pktlen' function which
automatically determines the correct value for an interface's pkglen
by scanning the HID descriptor. This function returns the correct
value for the wireless receiver's touch interface, removing the need
for us to set it manually here.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
---
 drivers/hid/wacom_sys.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c
index d932349..a334332 100644
--- a/drivers/hid/wacom_sys.c
+++ b/drivers/hid/wacom_sys.c
@@ -457,7 +457,6 @@ static void wacom_retrieve_hid_descriptor(struct hid_device *hdev,
 			features->device_type = WACOM_DEVICETYPE_NONE;
 		} else if (intf->cur_altsetting->desc.bInterfaceNumber == 2) {
 			features->device_type |= WACOM_DEVICETYPE_TOUCH;
-			features->pktlen = WACOM_PKGLEN_BBTOUCH3;
 		}
 	}
 
-- 
2.4.6


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

end of thread, other threads:[~2015-08-04 13:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-03 17:17 [PATCH 1/3] HID: wacom: Use calculated pkglen for wireless touch interface Jason Gerecke
2015-08-03 17:17 ` [PATCH 2/3] HID: wacom: Replace WACOM_QUIRK_MONITOR with WACOM_DEVICETYPE_WL_MONITOR Jason Gerecke
2015-08-03 17:17 ` [PATCH 3/3] HID: wacom: Remove WACOM_QUIRK_NO_INPUT Jason Gerecke
2015-08-03 17:39   ` Benjamin Tissoires
2015-08-04 13:40 ` [PATCH 1/3] HID: wacom: Use calculated pkglen for wireless touch interface 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).