diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2023-10-12 12:23:39 +0200 |
|---|---|---|
| committer | Benjamin Tissoires <bentiss@kernel.org> | 2023-10-25 18:33:42 +0200 |
| commit | f354872108ebc5558653db5ff9b8c5edf375599d (patch) | |
| tree | 4195e5d8f35810a6358cfe1863c567ee5f712919 /tools/perf/scripts/python | |
| parent | HID: core: remove #ifdef CONFIG_PM from hid_driver (diff) | |
| download | linux-f354872108ebc5558653db5ff9b8c5edf375599d.tar.gz linux-f354872108ebc5558653db5ff9b8c5edf375599d.zip | |
HID: usbhid: 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-2-0a71531ca93b@weissschuh.net
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
