From patchwork Sun Mar 22 14:43:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriele Mazzotta X-Patchwork-Id: 6066801 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 9B83E9F350 for ; Sun, 22 Mar 2015 14:44:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C81C92026D for ; Sun, 22 Mar 2015 14:44:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E158F2026F for ; Sun, 22 Mar 2015 14:44:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751784AbbCVOo3 (ORCPT ); Sun, 22 Mar 2015 10:44:29 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:38108 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751705AbbCVOo0 (ORCPT ); Sun, 22 Mar 2015 10:44:26 -0400 Received: by wibgn9 with SMTP id gn9so36490641wib.1; Sun, 22 Mar 2015 07:44:25 -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:in-reply-to:references; bh=sCzFQ216ksfU5aZxtdqD4V5HJtsVLww7jKXRcLB+pH8=; b=IxBtZZmkngg0+RxZ6xyxZQ/xP3YEq5KeE+M6r90sB1lAawmHvdgO1Q8He1FLS1jB0p vP3m+9eZzPH788xsNqg6lEzsEXNUH1UuGZ+X3NH7xZ8Xawe0FRbarLc+18+4nRkk1/KN IQiMlP0lrsinrXt623GOD/NvmqdVJeMYJkbJ5EiqpUrAI/KaKiYAFA1FLn4PjlceihKo WyZQIVgJAfE8CGcXUxq754e8hCzf8hMHKmFNpEYY3TJ6tcYNK3mtUupdXtwrYYAks8ST +3mg7oCXTp2gpKNuSFC44cQBvxqqdGbK4JnLMVC5Gadf/A1GHAFAakd+7tYrbtL+jGPG yKEg== X-Received: by 10.194.71.175 with SMTP id w15mr170748958wju.16.1427035465349; Sun, 22 Mar 2015 07:44:25 -0700 (PDT) Received: from xps13.homenet (2-235-140-64.ip228.fastwebnet.it. [2.235.140.64]) by mx.google.com with ESMTPSA id pa4sm15134038wjb.11.2015.03.22.07.44.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Mar 2015 07:44:24 -0700 (PDT) From: Gabriele Mazzotta To: linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, dmitry.torokhov@gmail.com, rydberg@bitmath.org, silverhammermba@gmail.com, peter.hutterer@who-t.net, hdegoede@redhat.com, benjamin.tissoires@gmail.com, grafi@grafi.jp, oneukum@suse.de, Gabriele Mazzotta Subject: [PATCH v3 2/5] input: synaptics - change default width value of cr48 sensors Date: Sun, 22 Mar 2015 15:43:53 +0100 Message-Id: <1427035436-2168-3-git-send-email-gabriele.mzt@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1427035436-2168-1-git-send-email-gabriele.mzt@gmail.com> References: <1427035436-2168-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 Reviewed-by: Benjamin Tissoires --- 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 133e488..a7a0e73 100644 --- a/drivers/input/mouse/synaptics.c +++ b/drivers/input/mouse/synaptics.c @@ -1018,7 +1018,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: