From: Jiri Slaby (SUSE) Date: Thu, 1 Feb 2024 11:53:15 +0000 (+0100) Subject: HID: wacom: remove unused hid_data::pressure X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=dcd5231f093b6cd8ea2015e7fe1f372cef5c643d;p=linux.git 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 --- diff --git a/drivers/hid/wacom_wac.h b/drivers/hid/wacom_wac.h index e63b1e806e347..6ec499841f709 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;