From patchwork Fri Nov 15 19:58:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ping Cheng X-Patchwork-Id: 3189581 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EC9F29F432 for ; Fri, 15 Nov 2013 19:58:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1D6FD2094A for ; Fri, 15 Nov 2013 19:58:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2BDDC208FE for ; Fri, 15 Nov 2013 19:58:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751981Ab3KOT6c (ORCPT ); Fri, 15 Nov 2013 14:58:32 -0500 Received: from mail-pb0-f45.google.com ([209.85.160.45]:65171 "EHLO mail-pb0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751446Ab3KOT6c (ORCPT ); Fri, 15 Nov 2013 14:58:32 -0500 Received: by mail-pb0-f45.google.com with SMTP id mc8so4034538pbc.4 for ; Fri, 15 Nov 2013 11:58:31 -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=2u2CGiix6TOyOO1D5bxa7lhJq9Bw0Ybzf902iozBJqE=; b=CvdY20x6KrxrVJKi1UDCWeW+IcABMrMGvmC4vhvsRyUjomhMLGdBTNStpbW8RqJlwt MmyPimro5w5N7eDW1EoHt/AOZuFTz63wmV5dGnOhICaqWYBSVDvQ3hec1EQk5GJfRPHx aSwCivLUMqvRGbON9ZTgsKgA69YsXr/9QMnLm4uQJ+DjlG8/APKO2px++d3y2H8xVpYI fEoM0izFotcyBrIixU+/uCoDcGjg7G5EwZozz6lZ/lNPnEoY9S9+7ttnrQhLLEzc17WD YIeSAtTQVaX25hlKaopcihN5wIb7uJqhtDaDuobVM3Ft6aT28ExH7DWQaGQ0k4G79q+T 2Ifg== X-Received: by 10.66.161.194 with SMTP id xu2mr8621654pab.120.1384545511781; Fri, 15 Nov 2013 11:58:31 -0800 (PST) Received: from wacom-XPS-8500.wacom.com ([67.51.163.2]) by mx.google.com with ESMTPSA id tu6sm6311234pbc.41.2013.11.15.11.58.30 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Nov 2013 11:58:30 -0800 (PST) From: Ping Cheng To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, killertofu@gmail.com, chris@cnpbagwell.com, peter.hutterer@who-t.net Subject: [PATCH 1/4 v3] input: wacom - Scale up touch width and height values for Intuos Pro Date: Fri, 15 Nov 2013 11:58:24 -0800 Message-Id: <1384545504-15434-1-git-send-email-pingc@wacom.com> X-Mailer: git-send-email 1.8.3.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, 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 From: Signed-off-by: Jason Gerecke The width and height values reported by the Intuos Pro are not in surface units as required by the MT protocol. A simple multiplier of 100x corrects it. Signed-off-by: Jason Gerecke Acked-by: Ping Cheng --- drivers/input/tablet/wacom_wac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c index 9c8eded..3f75f1d 100644 --- a/drivers/input/tablet/wacom_wac.c +++ b/drivers/input/tablet/wacom_wac.c @@ -1151,8 +1151,8 @@ static void wacom_bpt3_touch_msg(struct wacom_wac *wacom, unsigned char *data) int width, height; if (features->type >= INTUOSPS && features->type <= INTUOSPL) { - width = data[5]; - height = data[6]; + width = data[5] * 100; + height = data[6] * 100; } else { /* * "a" is a scaled-down area which we assume is