From ca314d58b9fb1245bdb4f55bce789dfcd8306468 Mon Sep 17 00:00:00 2001 From: "Jiri Slaby (SUSE)" Date: Thu, 1 Feb 2024 12:53:15 +0100 Subject: [PATCH] HID: wacom: remove unused hid_data::pressure The pressure member in struct hid_data is unused. It was added in commit 5ae6e89f7409 (HID: wacom: implement the finger part of the HID generic handling), but never used. As this is not a struct to communicate with the HW, remove that member. Found by https://github.com/jirislaby/clang-struct. Signed-off-by: Jiri Slaby (SUSE) Cc: Ping Cheng Cc: Jason Gerecke Cc: Jiri Kosina Cc: Benjamin Tissoires Acked-by: Ping Cheng Signed-off-by: Jiri Kosina [jason.gerecke@wacom.com: Imported into input-wacom (dcd5231f093b)] Signed-off-by: Jason Gerecke --- 4.5/wacom_wac.h | 1 - 1 file changed, 1 deletion(-) diff --git a/4.5/wacom_wac.h b/4.5/wacom_wac.h index aa2c2c94..83602e6e 100644 --- a/4.5/wacom_wac.h +++ b/4.5/wacom_wac.h @@ -336,7 +336,6 @@ struct hid_data { bool confidence; int x; int y; - int pressure; int width; int height; int id;