]> www.infradead.org Git - users/jedix/linux-maple.git/commit
HID: multitouch: remove #ifdef CONFIG_PM
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 12 Oct 2023 10:23:40 +0000 (12:23 +0200)
committerBenjamin Tissoires <bentiss@kernel.org>
Wed, 25 Oct 2023 16:33:42 +0000 (18:33 +0200)
commitfc2543414c3e9c5a0d3ac218ae93fb561a503deb
tree146c5d64f7230360f29e1d5f71390af6257ca60d
parentf354872108ebc5558653db5ff9b8c5edf375599d
HID: multitouch: 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.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20231012-hid-pm_ptr-v1-3-0a71531ca93b@weissschuh.net
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
drivers/hid/hid-multitouch.c