Commit 758f46c
watchdog: kempld: Remove #ifdef guards for PM related functions
Use the pm_ptr() macro to handle the .suspend/.resume callbacks.
This macro allows the suspend and resume functions to be automatically
dropped by the compiler when CONFIG_SUSPEND is disabled, without having
to use #ifdef guards. Not using #ifdef guards means that the code is
always compiled independently of any Kconfig option, and thanks to that
bugs and regressions are easier to catch.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20221020185047.1001522-5-paul@crapouillou.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>1 parent 0327476 commit 758f46c
1 file changed
Lines changed: 2 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | 78 | | |
80 | | - | |
81 | 79 | | |
82 | 80 | | |
83 | 81 | | |
| |||
495 | 493 | | |
496 | 494 | | |
497 | 495 | | |
498 | | - | |
499 | 496 | | |
500 | 497 | | |
501 | 498 | | |
| |||
531 | 528 | | |
532 | 529 | | |
533 | 530 | | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | 531 | | |
539 | 532 | | |
540 | 533 | | |
541 | 534 | | |
542 | 535 | | |
543 | 536 | | |
544 | | - | |
545 | | - | |
| 537 | + | |
| 538 | + | |
546 | 539 | | |
547 | 540 | | |
548 | 541 | | |
| |||
0 commit comments