From patchwork Mon Jan 5 22:28:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriele Mazzotta X-Patchwork-Id: 5570741 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 AFCC9BF6C3 for ; Mon, 5 Jan 2015 22:30:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0278B20306 for ; Mon, 5 Jan 2015 22:30:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6B9AB202F8 for ; Mon, 5 Jan 2015 22:30:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754604AbbAEW2z (ORCPT ); Mon, 5 Jan 2015 17:28:55 -0500 Received: from mail-wg0-f41.google.com ([74.125.82.41]:35570 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754583AbbAEW2y (ORCPT ); Mon, 5 Jan 2015 17:28:54 -0500 Received: by mail-wg0-f41.google.com with SMTP id l18so3079834wgh.0; Mon, 05 Jan 2015 14:28:52 -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:in-reply-to:references; bh=YAZ5/jen+YE63cKwc9/Obb10fYO1fJPYu4MHZG4k5oo=; b=exiD1U5D91Ku4IWPXdOs0YWI6YaTkJ0XbD1cGs0wRXeP7fUTVDeBMPoDbm+ETfva8r jsle57RfIXzfjfKydou2SXonutZg+6/CuwaWbtfaNrzDsFOLc86Tpz/uQdfG+S1Wr3wH ZT9ZelMvuTK7+0I0POMVatfSjxSMfPFc61DHoH7ReZIoFJqm6DordbGbqO1zjOImFb+4 BhOXVKUmqaVJRYJy6YQtSuT4WudT1k4mIwZ36SfqHJKMsvXQb+65gDh8askqW59NsLGw A1KFdOVvNJCqCgbev5K3OA3SfJGTZTFp7ndEMMLSEGzjHTuVzqFIXfJWHkKXOOic9Lui myRA== X-Received: by 10.194.2.34 with SMTP id 2mr187697287wjr.58.1420496932781; Mon, 05 Jan 2015 14:28:52 -0800 (PST) Received: from xps13.homenet (2-235-140-64.ip228.fastwebnet.it. [2.235.140.64]) by mx.google.com with ESMTPSA id h13sm11580679wiw.4.2015.01.05.14.28.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Jan 2015 14:28:52 -0800 (PST) From: Gabriele Mazzotta To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, rydberg@euromail.se, linux-kernel@vger.kernel.org, silverhammermba@gmail.com, peter.hutterer@who-t.net, hdegoede@redhat.com, benjamin.tissoires@gmail.com, Gabriele Mazzotta Subject: [PATCH v2 3/4] input: synaptics - change default width value of cr48 sensors Date: Mon, 5 Jan 2015 23:28:34 +0100 Message-Id: <1420496915-31560-4-git-send-email-gabriele.mzt@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1420496915-31560-1-git-send-email-gabriele.mzt@gmail.com> References: <1420496915-31560-1-git-send-email-gabriele.mzt@gmail.com> 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 The minimum value these sensors can report is 4, so this should be the value used when W is not reporting the width. Signed-off-by: Gabriele Mazzotta --- drivers/input/mouse/synaptics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c index 918a727..5008e8c 100644 --- a/drivers/input/mouse/synaptics.c +++ b/drivers/input/mouse/synaptics.c @@ -910,7 +910,7 @@ static void synaptics_process_packet(struct psmouse *psmouse) if (hw.z > 0 && hw.x > 1) { num_fingers = 1; - finger_width = 5; + finger_width = 4; if (SYN_CAP_EXTENDED(priv->capabilities)) { switch (hw.w) { case 0 ... 1: