From patchwork Fri Dec 4 22:45:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gerecke, Jason" X-Patchwork-Id: 7772771 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 694379F39B for ; Fri, 4 Dec 2015 22:45:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 968C820630 for ; Fri, 4 Dec 2015 22:45:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A84FC2062A for ; Fri, 4 Dec 2015 22:45:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755229AbbLDWpk (ORCPT ); Fri, 4 Dec 2015 17:45:40 -0500 Received: from mail-pf0-f182.google.com ([209.85.192.182]:34697 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755162AbbLDWpj (ORCPT ); Fri, 4 Dec 2015 17:45:39 -0500 Received: by pfbg73 with SMTP id g73so33375621pfb.1 for ; Fri, 04 Dec 2015 14:45:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=j9gsRulYpi/0oH0OzkeTB4Y32BQ5URF32koZp754zvk=; b=qB2l+uxWJtE1vEIGdfdalTyAIpd/MZdAmjsObXJFftpspf1ve9Qq0kkZbXmON6RWKL h34jXgkJQtyxTxzU8PZ1Efiz4t3Mu/pXo3/rNRMh5fL2eh3pH2Mw2kMw6KFUGqy4bV8j huxFVWXi0d6WQbkfvuxqvWgB0q6XGpBOMmcKGP4wo4aDglr9vY3v28OnCcuKv+Rb5xWa W2cpBlLGbPZn1nQxMoGo0aTbeaL0cEr/QCTEAap4US9c0Fdq0OpTQro+wnTk/MNHTrR3 XWIIwNd4RTq4TOE60UREhEdSJ5hfjx/EQmpVWLpgh0ZttpYkXFI/O+2V64MUOfeU9uDv vzQA== X-Received: by 10.98.11.153 with SMTP id 25mr25369118pfl.102.1449269138964; Fri, 04 Dec 2015 14:45:38 -0800 (PST) Received: from wacom-arch2.corp.onewacom.com ([67.51.163.2]) by smtp.gmail.com with ESMTPSA id ix2sm19225169pac.15.2015.12.04.14.45.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Dec 2015 14:45:38 -0800 (PST) From: Jason Gerecke To: linux-input@vger.kernel.org Cc: Jiri Kosina , Ping Cheng , Aaron Skomra , Jason Gerecke , Jason Gerecke Subject: [PATCH] HID: wacom: Apply lowres quirk to BAMBOO_TOUCH devices Date: Fri, 4 Dec 2015 14:45:27 -0800 Message-Id: <1449269127-23508-1-git-send-email-killertofu@gmail.com> X-Mailer: git-send-email 2.6.2 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 When splitting the touch-only "BAMBOO_TOUCH" type out of the existing "BAMBOO_PT" type in 3b164a00, the lowres quirk was not updated so that it would continue to apply to these devices (effectively only the 0xD0). The absence of this quirk does not significantly impact usability, but is a correctness issue nonetheless. Signed-off-by: Jason Gerecke --- drivers/hid/wacom_wac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c index 3953416..bec2300 100644 --- a/drivers/hid/wacom_wac.c +++ b/drivers/hid/wacom_wac.c @@ -2421,7 +2421,7 @@ void wacom_setup_device_quirks(struct wacom *wacom) features->quirks |= WACOM_QUIRK_BATTERY; /* quirk for bamboo touch with 2 low res touches */ - if (features->type == BAMBOO_PT && + if ((features->type == BAMBOO_PT || features->type == BAMBOO_TOUCH) && features->pktlen == WACOM_PKGLEN_BBTOUCH) { features->x_max <<= 5; features->y_max <<= 5;