diff options
author | Thomas Weißschuh <[email protected]> | 2023-10-12 12:23:38 +0200 |
---|---|---|
committer | Benjamin Tissoires <[email protected]> | 2023-10-25 18:33:42 +0200 |
commit | df8b030d82dd1224881acb4e778fa06c4824f72b (patch) | |
tree | 71116db8edf3f34ad755aa8b781fe8e989bd92b4 /tools/perf/util/trace-event-scripting.c | |
parent | bab19d1b21547046b0a38dde948086f6cbcaefaa (diff) |
HID: core: remove #ifdef CONFIG_PM from hid_driver
Allow HID drivers to pass ->suspend, ->resume and ->reset_resume via
pm_ptr().
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.
The only overhead in the final kernel image and at runtime are a few
extra bytes in 'struct hid_driver'.
The same approach is chosen by 'struct usb_driver' and other subsystems.
Signed-off-by: Thomas Weißschuh <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Benjamin Tissoires <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions