mbox series

[0/7] HID: unused struct members cleanup

Message ID 20240201115320.684-1-jirislaby@kernel.org
Headers show
Series HID: unused struct members cleanup | expand

Message

Jiri Slaby Feb. 1, 2024, 11:53 a.m. UTC
Hi,

the patches deal with unused members of structures as found by
clang-struct.

Sometimes even whole structures are removed.

Jiri Slaby (SUSE) (7):
  HID: apple: remove unused members from struct apple_sc_backlight
  HID: wacom: remove unused hid_data::pressure
  HID: protect hid_device::bpf by CONFIG_HID_BPF
  HID: hid-lg3ff: remove unused struct lg3ff_device
  HID: hid-multitouch: remove unused mt_application::dev_time
  HID: hid-prodikeys: remove unused struct pcmidi_snd members
  HID: hid-prodikeys: remove struct pk_device

 drivers/hid/hid-apple.c      |   1 -
 drivers/hid/hid-lg3ff.c      |   4 --
 drivers/hid/hid-multitouch.c |   1 -
 drivers/hid/hid-prodikeys.c  | 115 ++++++++++++-----------------------
 drivers/hid/wacom_wac.h      |   1 -
 include/linux/hid.h          |   4 +-
 6 files changed, 42 insertions(+), 84 deletions(-)

Comments

Jiri Kosina Feb. 13, 2024, 10:44 a.m. UTC | #1
On Thu, 1 Feb 2024, Jiri Slaby (SUSE) wrote:

> Hi,
> 
> the patches deal with unused members of structures as found by
> clang-struct.
> 
> Sometimes even whole structures are removed.

Good stuff, thanks. Applied to hid.git#for-6.9/unused-struct-removal.