Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp958169pxb; Thu, 12 Nov 2020 23:44:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhhwovBPdBej2yv3ds0elWQZRlA6gCq/Rrupaf6louyJftJ1VCdPlmUnY79nHZi+DPlwQ5 X-Received: by 2002:a17:906:854b:: with SMTP id h11mr750670ejy.273.1605253491142; Thu, 12 Nov 2020 23:44:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605253491; cv=none; d=google.com; s=arc-20160816; b=I/E2nObbwG1fcqVyS1aRVwX8Nq4NXMyvamW/wo1l9tCYpbJ6aT3dERRHd6h2J0RRA/ woz/1Y3NPz4pMYdq1QjIafOOvwBm3yg6ZCtWilwPQzIMcxBSv9UB2ItHrIjr8JpZtrve /N1nIZzTFOY00SCJ70UUrgveU40F4M0M6CYa4ufn/r190BcoIhsvzRF641j7PPivX3YV OBFV5215DA3eHsLOUb7yGLlvhPA9V9qQHSrU387/qrY6VAz1ePlSs/4HBE9TnJxlX8wk 7m2Q2BIBh0oXEyx48dEvpp6TglbZ0HeJEoJYBeDBmbQvfxL5/MYbPwege60OCHaF8XBo PwHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=8BBRskIzqXb+Gk5MGiRjDG5bxT3CFF0XWRP/XyHTJi0=; b=tQy01JBQSFSA4VtVr+Ml+o55rEJNJdjLo7tUjGy8+c/gXvWuLEyWVbqaehW+Z+JpED 8zxb6c3x1ZFd9IofVFb/cNAKugqqoIXi7TPEp6wS+RhwLBa0JtjI25zjvZ3Io3ix1hSr g15xH0Kl49SPcDSKNqI3aHSLvizwfVIpp/aDZS32J/lXhqRObzSYXm1IVDjbUlaWtZ3q vM/EaG2pXUXjuW6z4WngVHxCWVEXz0hoV+zQWgCIbsTBw4ZBuVUzlkJA29j2LbGWRqJ/ zs5rkHKjDIbuCPZScK+XkuPue8yL+qN/7+3BQNhZYZcsSR0xX1IX/6T6j3M/5mibUAP8 IuoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qL1Sgeun; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id op9si5335917ejb.447.2020.11.12.23.44.28; Thu, 12 Nov 2020 23:44:51 -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=@gmail.com header.s=20161025 header.b=qL1Sgeun; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726221AbgKMHmu (ORCPT + 99 others); Fri, 13 Nov 2020 02:42:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbgKMHmu (ORCPT ); Fri, 13 Nov 2020 02:42:50 -0500 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6C9DC0613D1; Thu, 12 Nov 2020 23:42:49 -0800 (PST) Received: by mail-qk1-x744.google.com with SMTP id u4so8041950qkk.10; Thu, 12 Nov 2020 23:42:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=8BBRskIzqXb+Gk5MGiRjDG5bxT3CFF0XWRP/XyHTJi0=; b=qL1SgeunlkoC7JJD6Xvopnf0GofAR6fbmNE72kMbNWS+ekPW3XW6vPNAT/XVNK4FqO dbIkS6K/uGZA4UcxHosl3Im9G0K3qIcGO0VzNBt9Vz8WcLLUEa0aZMv+WmVVLwrgas4i DyXGsAcu3r87iDN28haaS2N7KdYde7Gkiw20FodVV0gy7MSTDwQ4x8cXj341QqXf8Rgm MDWb8FBGDvgOxk4HEtCEJ4+sbL8fJR6h7STurx2zABFW7l6FSsLXMmzB4kxjgfdPjQmj lpNeRuENuLY7Tr+4psnE2Y4gfPo9dS/QJGHYdT0jtTjgsOuO2JKnKijxzsGWVXc675et 36Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=8BBRskIzqXb+Gk5MGiRjDG5bxT3CFF0XWRP/XyHTJi0=; b=PZ9sRbovt3sIqQP/q8PQR0ynY7Zo+70Con9HnmrZrcT59ql//O2yFIOkIHbZJvXeVr OguDOcy5xULkiGove5ek9WeOx6UgWMozvu0kpFfzg13fMXtdxEGCHhl+oc12Na90abiA 9lbL9EdouNlr6DcK4nN+N7XPmeDZvkg5STgsaffwp9n1CHOF5Gjb/R0CHf6fTzddSTKa mdlMje4jUFg8vKR7sy0egINvpOlFE3sIZRWj7v7jiTFavpcCDDwgpJXGxTAVvYx7ZzfQ TCEOwxFbSkG6BzknN+lxLaw3OaoocuhrOvxm0DNG96qk+baB/944X8ZjgelkkzKNr1lD eEhw== X-Gm-Message-State: AOAM533fFJzz20OUVPIAfLaNdaAwPcD/qg9QjowyyuCXHwGzvpgJ9nQr /hgHwVpw6EU+oEkXHXB+5w2aOsQ56sDvrE+KOQQ= X-Received: by 2002:a37:84b:: with SMTP id 72mr816197qki.435.1605253369119; Thu, 12 Nov 2020 23:42:49 -0800 (PST) MIME-Version: 1.0 References: <20201112110204.2083435-1-lee.jones@linaro.org> <20201112110204.2083435-9-lee.jones@linaro.org> <20201113074028.GI356503@dtor-ws> In-Reply-To: <20201113074028.GI356503@dtor-ws> From: Benjamin Tissoires Date: Fri, 13 Nov 2020 08:42:37 +0100 Message-ID: Subject: Re: [PATCH 08/15] input: touchscreen: surface3_spi: Remove set but unused variable 'timestamp' To: Dmitry Torokhov , Peter Hutterer Cc: Lee Jones , lkml , Henrik Rydberg , linux-input Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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=3D1 kernel build warning(s): > > > > drivers/input/touchscreen/surface3_spi.c: In function =E2=80=98surface= 3_spi_process_touch=E2=80=99: > > drivers/input/touchscreen/surface3_spi.c:97:6: warning: variable =E2= =80=98timestamp=E2=80=99 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/t= ouchscreen/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_dat= a, u8 *data) > > { > > - u16 timestamp; > > unsigned int i; > > - timestamp =3D 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. Not sure if chrome/android uses it. Cheers, Benjamin > > > > > for (i =3D 0; i < 13; i++) { > > struct surface3_ts_data_finger *finger; > > -- > > 2.25.1 > > > > Thanks. > > -- > Dmitry