Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2703575pxb; Sun, 15 Nov 2020 14:54:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZLBviZjg8Roktf7RszjV7qH8g5nfQ6Hki3JTdiiZT+3rg0XzjAWhsEhkvt5Up7Q83nyv0 X-Received: by 2002:aa7:c90d:: with SMTP id b13mr13545015edt.136.1605480897502; Sun, 15 Nov 2020 14:54:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605480897; cv=none; d=google.com; s=arc-20160816; b=Gvme7utS2V007RbMypr6A3Zm7cv9E+jl3QddzU6ePCgRCHZUbgfifC69NSxJdm3Bj0 wrUdd4U6y+L8xNl0AbpD23QL9ZugLchj5F11RvEfMEDMKHGDgFP2/ULBiW4mSqs9rj2/ W23a4E5N0+fcHkqR4hpV6nTraXjy4fqTP/CvbHWb9LNih0duxc17p15lUJNQ0/sQBOfy lACerRzhX6tmPmUQhp+VPaHlcixy2G1ZSz2LBEftGxDja6y4El+1vMIURlMKbO7N9gaj fjeCJJnwWfJnDS446tkAe2Tb0pi/5jXFo3H7LmViLerltyz6FEeYzH7bgjHp/dvblSF6 b2JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=IWA2mVRjVeLe+ugwr4gmD7NsR5QAbcoEWJZjRzCgrNg=; b=eOdV8EQRbeZYMqHN1IkjhyOSoT1JAYCTKsZdSyZXQMiVWepjx4joDRa1IhCZIQHPFc yKP9tbYGY0YLfCcjDC8Yi6Y5dz7wISB1p4oup9AvUQrPYxQ0HWKC55HnbM5oBOg0h41k rBvdZU84AFWwmIbtzlaufMu6nsYnrA0ODQL6GgwTH4zyk6h435RYCn1EdVH/hwATlEWr VT+gg+ymSX6g+ZBGpQnavuPtHpXjtICIZJpv59mCam/ads8ZQw7N2DPDkFtgvoWLfRhd q3KRMuUJ1jAh26ykWfoZrjFt38Vr2DQHxaUx2dsfemA/iix6XJqkf9D9AzygBoWSVouV oZsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@who-t.net header.s=fm1 header.b=EGj7CXV9; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=sAXIiMYt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o22si9991452ejb.569.2020.11.15.14.54.27; Sun, 15 Nov 2020 14:54:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@who-t.net header.s=fm1 header.b=EGj7CXV9; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=sAXIiMYt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727108AbgKOWCU (ORCPT + 99 others); Sun, 15 Nov 2020 17:02:20 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:48997 "EHLO wout1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726924AbgKOWCT (ORCPT ); Sun, 15 Nov 2020 17:02:19 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 500699E6; Sun, 15 Nov 2020 17:02:13 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 15 Nov 2020 17:02:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=who-t.net; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=fm1; bh=I WA2mVRjVeLe+ugwr4gmD7NsR5QAbcoEWJZjRzCgrNg=; b=EGj7CXV94ixDhtAT0 72eOZT1D6pf72/tbX5mUV9yekPZyP6cFy/P0gSMKqKl3tLqA9V/0n5qZtJLTefk5 iLI/xnSTi4QpLsPDb9apzHUfLAZHLJ2B8NSLcOAGgptnKBKms/XcwPjC1UGuoh7o jd41AozrfCz6pdZ1jgxlC/iNhzBf2LLrxjdgWgwwYlzWFH1cu2Jf5t8WjCfZR6zf NBOfwwDJjaOaxx2AKMOR7tY27QhUlSGg8x0XWXl/svoOzorl/E/YjR61az2G0RQx KCmdg812EnfPsaI1bzJc4RL7Jsb4AUJC/UGFgV3MO4BjpmG0lybpp0XR1TJTGWSv P7ZZQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=IWA2mVRjVeLe+ugwr4gmD7NsR5QAbcoEWJZjRzCgr Ng=; b=sAXIiMYtGc5TkfqiZMu04fXxd+Ifp5/C6nD2oLZBYmSKGtwwNl1aV2gwT SRGICQyDnf4V9QwxJPcgcQTZdd4MZkX7qwnm+q3CbhQ2qUCzeB/VVW3Ww20QeaV+ QCrM7ZNBDAi573LH80KQV2aXko4GiGBhHqZKRvSLqvUbM0H80JLPmNuagRb/fjq0 fmTO2GopddxnwVSS2y+D4ZnGMXvXJIOIR+TACM7Xo6go2YF1JuS/vIMU3nu9DzIF yoMVpUD/Yvv1uRi8OhlDyb41bGpP0WTnemr0fajJSFeUxXc/5THRjG/bF1igJfiN 1jsz3q/8rwdz3t4ueB/eZdKA1k6hg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddvledgudeitdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggugfgjsehtkeertddttdejnecuhfhrohhmpefrvght vghrucfjuhhtthgvrhgvrhcuoehpvghtvghrrdhhuhhtthgvrhgvrhesfihhohdqthdrnh gvtheqnecuggftrfgrthhtvghrnhepgeeftedtgeefleffhfdvffffhfegleegjeeijeek keetfeetvdffhedtkeeiffejnecukfhppeduudejrddvtddrjedurdejfeenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdhhuhht thgvrhgvrhesfihhohdqthdrnhgvth X-ME-Proxy: Received: from koala (117-20-71-73.751447.bne.nbn.aussiebb.net [117.20.71.73]) by mail.messagingengine.com (Postfix) with ESMTPA id 56DF03064AA7; Sun, 15 Nov 2020 17:02:10 -0500 (EST) Date: Mon, 16 Nov 2020 08:02:05 +1000 From: Peter Hutterer To: Benjamin Tissoires Cc: Dmitry Torokhov , Lee Jones , lkml , Henrik Rydberg , linux-input Subject: Re: [PATCH 08/15] input: touchscreen: surface3_spi: Remove set but unused variable 'timestamp' Message-ID: <20201115220205.GA765581@koala> References: <20201112110204.2083435-1-lee.jones@linaro.org> <20201112110204.2083435-9-lee.jones@linaro.org> <20201113074028.GI356503@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 13, 2020 at 08:42:37AM +0100, Benjamin Tissoires wrote: > On Fri, Nov 13, 2020 at 8:40 AM Dmitry Torokhov > wrote: > > > > On Thu, Nov 12, 2020 at 11:01:57AM +0000, Lee Jones wrote: > > > Fixes the following W=1 kernel build warning(s): > > > > > > drivers/input/touchscreen/surface3_spi.c: In function ‘surface3_spi_process_touch’: > > > drivers/input/touchscreen/surface3_spi.c:97:6: warning: variable ‘timestamp’ set but not used [-Wunused-but-set-variable] > > > > > > Cc: Dmitry Torokhov > > > Cc: Henrik Rydberg > > > Cc: Benjamin Tissoires > > > Cc: linux-input@vger.kernel.org > > > Signed-off-by: Lee Jones > > > --- > > > drivers/input/touchscreen/surface3_spi.c | 2 -- > > > 1 file changed, 2 deletions(-) > > > > > > diff --git a/drivers/input/touchscreen/surface3_spi.c b/drivers/input/touchscreen/surface3_spi.c > > > index ce4828b1415a8..72dc4c562a4e1 100644 > > > --- a/drivers/input/touchscreen/surface3_spi.c > > > +++ b/drivers/input/touchscreen/surface3_spi.c > > > @@ -94,9 +94,7 @@ static void surface3_spi_report_touch(struct surface3_ts_data *ts_data, > > > > > > static void surface3_spi_process_touch(struct surface3_ts_data *ts_data, u8 *data) > > > { > > > - u16 timestamp; > > > unsigned int i; > > > - timestamp = get_unaligned_le16(&data[15]); > > > > Benjamin, should we pass timing data on to userspace instead? > > Last time I checked, libinput was not using the HW timestamp. So I > don't mind dropping it. I'm assuming this would be passed on as MSC_TIMESTAMP? I never found the time implementing this and I mask MSC_TIMESTAMP on most devices anyway (except for Dell's i2c touchpads where I need it to work around a fw bug). so at least from libinput's POV it wouldn't have any effect either way. Cheers, Peter > > Not sure if chrome/android uses it. > > Cheers, > Benjamin > > > > > > > > > for (i = 0; i < 13; i++) { > > > struct surface3_ts_data_finger *finger; > > > -- > > > 2.25.1 > > > > > > > Thanks. > > > > -- > > Dmitry