From patchwork Mon Aug 3 17:17:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gerecke, Jason" X-Patchwork-Id: 6931981 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 23008C05AC for ; Mon, 3 Aug 2015 17:17:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2F08020414 for ; Mon, 3 Aug 2015 17:17:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1CADD2039E for ; Mon, 3 Aug 2015 17:17:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754402AbbHCRRU (ORCPT ); Mon, 3 Aug 2015 13:17:20 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:34445 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754133AbbHCRRT (ORCPT ); Mon, 3 Aug 2015 13:17:19 -0400 Received: by pawu10 with SMTP id u10so17182070paw.1 for ; Mon, 03 Aug 2015 10:17:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=i9BXlJWhbCLYjsCAVtp9selYbygDwssbl2lk/7K15WM=; b=tQDRVUkgscHLNcs6id5KuwH+vAGix18B2JsJRUonfoBDYSvURxcZpgxux6mck/w7IY UeHkV3MGnXzWnQF4aI/K94krhBw7GTO9ZGCkqT3dEZUpqOnsm8n7jRH2YuAMoxD7J0pW An7DS70V0Efk/ht3+R+QMePV3J3Cf65jOga6vg49oi6rcEkZz1KdYlUe9WD54pJbGKdr c+B2b8gMPOKP3LLtzZAQKa0Zoq/SVad3HQg0Pdcpxna4LN0pujMNaT9Womo0HD69SZhB P3dXjW9MEggvlHQ4TXKNPyxfWCwohOLelmZqRBWxHxKItsycU841Op+08aTIs4diGjJI x8Dw== X-Received: by 10.68.95.4 with SMTP id dg4mr25824061pbb.132.1438622239022; Mon, 03 Aug 2015 10:17:19 -0700 (PDT) Received: from wacom-arch2.localdomain ([67.51.163.2]) by smtp.gmail.com with ESMTPSA id 2sm3161330pdw.22.2015.08.03.10.17.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Aug 2015 10:17:17 -0700 (PDT) From: Jason Gerecke To: Jiri Kosina , Benjamin Tissoires Cc: Aaron Skomra , Ping Cheng , linux-input@vger.kernel.org, Jason Gerecke , Jason Gerecke Subject: [PATCH 1/3] HID: wacom: Use calculated pkglen for wireless touch interface Date: Mon, 3 Aug 2015 10:17:03 -0700 Message-Id: <1438622225-6718-1-git-send-email-killertofu@gmail.com> X-Mailer: git-send-email 2.4.6 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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; } }