Commit f354872
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>1 parent df8b030 commit f354872
1 file changed
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1562 | 1562 | | |
1563 | 1563 | | |
1564 | 1564 | | |
1565 | | - | |
1566 | 1565 | | |
1567 | 1566 | | |
1568 | 1567 | | |
| |||
1654 | 1653 | | |
1655 | 1654 | | |
1656 | 1655 | | |
1657 | | - | |
1658 | | - | |
1659 | 1656 | | |
1660 | 1657 | | |
1661 | 1658 | | |
| |||
1668 | 1665 | | |
1669 | 1666 | | |
1670 | 1667 | | |
1671 | | - | |
1672 | | - | |
1673 | | - | |
1674 | | - | |
1675 | | - | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
1676 | 1671 | | |
1677 | 1672 | | |
1678 | 1673 | | |
| |||
0 commit comments