Thread (42 messages) 42 messages, 6 authors, 2020-11-20

Re: [PATCH 08/15] input: touchscreen: surface3_spi: Remove set but unused variable 'timestamp'

From: Benjamin Tissoires <hidden>
Date: 2020-11-13 07:42:51
Also in: lkml

On Fri, Nov 13, 2020 at 8:40 AM Dmitry Torokhov
[off-list ref] wrote:
On Thu, Nov 12, 2020 at 11:01:57AM +0000, Lee Jones wrote:
quoted
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 <dmitry.torokhov@gmail.com>
Cc: Henrik Rydberg <rydberg@bitmath.org>
Cc: Benjamin Tissoires <redacted>
Cc: linux-input@vger.kernel.org
Signed-off-by: Lee Jones <redacted>
---
 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.

Not sure if chrome/android uses it.

Cheers,
Benjamin
quoted
      for (i = 0; i < 13; i++) {
              struct surface3_ts_data_finger *finger;
--
2.25.1
Thanks.

--
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help