From patchwork Wed Apr 15 23:54:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ping Cheng X-Patchwork-Id: 6223461 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 9338BBF4A6 for ; Wed, 15 Apr 2015 23:55:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7285520306 for ; Wed, 15 Apr 2015 23:55:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9EE74202FF for ; Wed, 15 Apr 2015 23:55:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753846AbbDOXzF (ORCPT ); Wed, 15 Apr 2015 19:55:05 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:33161 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751516AbbDOXzE (ORCPT ); Wed, 15 Apr 2015 19:55:04 -0400 Received: by pdbnk13 with SMTP id nk13so70045511pdb.0 for ; Wed, 15 Apr 2015 16:55:04 -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=iyMYmHomCHldA54UOPNhoexq0TVXG/pZhmwwubm5NyU=; b=uO9ZTBJuqFt3Sj8b2JB9DpLZSHNIQO8WVhpEtD4T7tZ/eY2UQIZP4y6KahShHhKx0M 5bbG/iOTIoPKe6Pr/GWvLbS7tKYmoCjEAeu01wPhogG2KJ1KgwOzrPZLNyfCJ/qiuIIz CqbRbKCm0M5uxrUO2OQ8EtgGTZ39EcFWvYETCsnbiOX6NR10eJbqjy4f7ec98MviWiMs MyrDkgCbG4fMFtopK5mwwZ7pGViPg2qur3KBihpSPDxP8LP4or+hnmejP0nGg+J+ajhl uJvdP9PuTjZlhC+MFK4iSxrOnuYKgp0KgupEOK4yWyVuIwYJU4356cCAHtJbM7TXv4UL RLLA== X-Received: by 10.68.197.201 with SMTP id iw9mr51549663pbc.84.1429142104561; Wed, 15 Apr 2015 16:55:04 -0700 (PDT) Received: from wacom-XPS-8500.wacom.com ([67.51.163.2]) by mx.google.com with ESMTPSA id z10sm5233337pas.18.2015.04.15.16.55.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Apr 2015 16:55:04 -0700 (PDT) From: Ping Cheng X-Google-Original-From: Ping Cheng To: jkosina@suse.cz Cc: linux-input@vger.kernel.org, Ping Cheng Subject: [PATCH 4/4] HID: wacom: remove unused packet lengths Date: Wed, 15 Apr 2015 16:54:58 -0700 Message-Id: <1429142098-16912-1-git-send-email-pingc@wacom.com> X-Mailer: git-send-email 1.9.1 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 We use generic hid_report_len() to get individual packet length now. Signed-off-by: Ping Cheng --- drivers/hid/wacom_wac.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/hid/wacom_wac.h b/drivers/hid/wacom_wac.h index 4700ac9..f5a5f68 100644 --- a/drivers/hid/wacom_wac.h +++ b/drivers/hid/wacom_wac.h @@ -18,10 +18,7 @@ #define WACOM_NAME_MAX 64 /* packet length for individual models */ -#define WACOM_PKGLEN_PENPRTN 7 -#define WACOM_PKGLEN_GRAPHIRE 8 #define WACOM_PKGLEN_BBFUN 9 -#define WACOM_PKGLEN_INTUOS 10 #define WACOM_PKGLEN_TPC1FG 5 #define WACOM_PKGLEN_TPC1FG_B 10 #define WACOM_PKGLEN_TPC2FG 14 @@ -29,9 +26,6 @@ #define WACOM_PKGLEN_BBTOUCH3 64 #define WACOM_PKGLEN_BBPEN 10 #define WACOM_PKGLEN_WIRELESS 32 -#define WACOM_PKGLEN_MTOUCH 62 -#define WACOM_PKGLEN_MTTPC 40 -#define WACOM_PKGLEN_DTUS 68 #define WACOM_PKGLEN_PENABLED 8 #define WACOM_PKGLEN_BPAD_TOUCH 32 #define WACOM_PKGLEN_BPAD_TOUCH_USB 64