Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758897AbcDANHT (ORCPT ); Fri, 1 Apr 2016 09:07:19 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33003 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758227AbcDANHO (ORCPT ); Fri, 1 Apr 2016 09:07:14 -0400 From: Gabriele Mazzotta To: dmitry.torokhov@gmail.com, benjamin.tissoires@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, rydberg@bitmath.org, silverhammermba@gmail.com, peter.hutterer@who-t.net, hdegoede@redhat.com, grafi@grafi.jp, oneukum@suse.de, Gabriele Mazzotta Subject: [PATCH v4 3/4] input: synaptics - change default width value of cr48 sensors Date: Fri, 1 Apr 2016 15:06:51 +0200 Message-Id: <1459516012-8060-4-git-send-email-gabriele.mzt@gmail.com> X-Mailer: git-send-email 2.8.0.rc3 In-Reply-To: <1459516012-8060-1-git-send-email-gabriele.mzt@gmail.com> References: <1459516012-8060-1-git-send-email-gabriele.mzt@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 730 Lines: 23 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 ba321e7..27a091b 100644 --- a/drivers/input/mouse/synaptics.c +++ b/drivers/input/mouse/synaptics.c @@ -1032,7 +1032,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: -- 2.8.0.rc3