Skip to content

HID: remove #ifdef CONFIG_PM

Thomas Weißschuh linux-input linux-usb lkml 1 version Applied

Status from this message: Applied to https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git (for-6.7/config_pm), thanks!

Get series with b4
b4 am [email protected] change-id 20231012-hid-pm_ptr-e29ab5ee7ce7

Versions newest first

  1. v1 Latest4 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4HID: core: remove #ifdef CONFIG_PM from hid_driverinclude/linux/hid.h+2 -20 replies
2/4HID: usbhid: remove #ifdef CONFIG_PMdrivers/hid/usbhid/hid-core.c+3 -80 replies
3/4HID: multitouch: remove #ifdef CONFIG_PMdrivers/hid/hid-multitouch.c+3 -70 replies
4/4HID: rmi: remove #ifdef CONFIG_PMdrivers/hid/hid-rmi.c+3 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] HID: remove #ifdef CONFIG_PM

Through the usage of pm_ptr() the CONFIG_PM-dependent code will always be compiled, protecting against bitrot.
The linker will then garbage-collect the unused function avoiding any overhead.

This series only converts three users of CONFIG_PM in drivers/hid/ but most of the others should be convertible, too.

---
Thomas Weißschuh (4):
HID: core: remove #ifdef CONFIG_PM from hid_driver
HID: usbhid: remove #ifdef CONFIG_PM
HID: multitouch: remove #ifdef CONFIG_PM
HID: rmi: remove #ifdef CONFIG_PM

 drivers/hid/hid-multitouch.c  | 10 +++-------
 drivers/hid/hid-rmi.c         | 10 +++-------
 drivers/hid/usbhid/hid-core.c | 11 +++--------
 include/linux/hid.h           |  4 ++--
 4 files changed, 11 insertions(+), 24 deletions(-)

---
base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d
change-id: 20231012-hid-pm_ptr-e29ab5ee7ce7

Best regards,

Signature · 1 line
Thomas Weißschuh <[email protected]>