HID: wacom: remove unused hid_data::pressure
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Thu, 1 Feb 2024 11:53:15 +0000 (12:53 +0100)
committerJiri Kosina <jkosina@suse.com>
Tue, 13 Feb 2024 10:43:55 +0000 (11:43 +0100)
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@kernel.org>
Cc: Ping Cheng <ping.cheng@wacom.com>
Cc: Jason Gerecke <jason.gerecke@wacom.com>
Cc: Jiri Kosina <jikos@kernel.org>
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Ping Cheng <ping.cheng@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/wacom_wac.h

index e63b1e806e347088822b6a70b720c04272b3187d..6ec499841f70959d8a6cc6e3ef2e5c21cddc9761 100644 (file)
@@ -309,7 +309,6 @@ struct hid_data {
        bool confidence;
        int x;
        int y;
-       int pressure;
        int width;
        int height;
        int id;