[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240201115320.684-3-jirislaby@kernel.org>
Date: Thu, 1 Feb 2024 12:53:15 +0100
From: "Jiri Slaby (SUSE)" <jirislaby@...nel.org>
To: jikos@...nel.org
Cc: linux-input@...r.kernel.org,
linux-kernel@...r.kernel.org,
"Jiri Slaby (SUSE)" <jirislaby@...nel.org>,
Ping Cheng <ping.cheng@...om.com>,
Jason Gerecke <jason.gerecke@...om.com>,
Benjamin Tissoires <benjamin.tissoires@...hat.com>
Subject: [PATCH 2/7] 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) <jirislaby@...nel.org>
Cc: Ping Cheng <ping.cheng@...om.com>
Cc: Jason Gerecke <jason.gerecke@...om.com>
Cc: Jiri Kosina <jikos@...nel.org>
Cc: Benjamin Tissoires <benjamin.tissoires@...hat.com>
---
drivers/hid/wacom_wac.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/hid/wacom_wac.h b/drivers/hid/wacom_wac.h
index e63b1e806e34..6ec499841f70 100644
--- a/drivers/hid/wacom_wac.h
+++ b/drivers/hid/wacom_wac.h
@@ -309,7 +309,6 @@ struct hid_data {
bool confidence;
int x;
int y;
- int pressure;
int width;
int height;
int id;
--
2.43.0
Powered by blists - more mailing lists