Commit 3f19e57
gpio: dwapb: Use modern PM macros
Use the modern PM macros for the suspend and resume functions to be
automatically dropped by the compiler when CONFIG_PM or
CONFIG_PM_SLEEP are disabled, without having to use #ifdef guards.
This has the advantage of always compiling these functions in,
independently of any Kconfig option. Thanks to that, bugs and other
regressions are subsequently easier to catch.
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Link: https://lore.kernel.org/r/20251124002105.25429-2-jszhang@kernel.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>1 parent 4cfe6cd commit 3f19e57
1 file changed
Lines changed: 4 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | 82 | | |
84 | 83 | | |
85 | 84 | | |
| |||
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
95 | | - | |
96 | 94 | | |
97 | 95 | | |
98 | 96 | | |
| |||
103 | 101 | | |
104 | 102 | | |
105 | 103 | | |
106 | | - | |
107 | 104 | | |
108 | | - | |
109 | 105 | | |
110 | 106 | | |
111 | 107 | | |
| |||
363 | 359 | | |
364 | 360 | | |
365 | 361 | | |
366 | | - | |
367 | 362 | | |
368 | 363 | | |
369 | 364 | | |
| |||
378 | 373 | | |
379 | 374 | | |
380 | 375 | | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | 376 | | |
385 | 377 | | |
386 | 378 | | |
| |||
390 | 382 | | |
391 | 383 | | |
392 | 384 | | |
393 | | - | |
| 385 | + | |
394 | 386 | | |
395 | 387 | | |
396 | 388 | | |
| |||
759 | 751 | | |
760 | 752 | | |
761 | 753 | | |
762 | | - | |
763 | 754 | | |
764 | 755 | | |
765 | 756 | | |
| |||
844 | 835 | | |
845 | 836 | | |
846 | 837 | | |
847 | | - | |
848 | 838 | | |
849 | | - | |
850 | | - | |
| 839 | + | |
| 840 | + | |
851 | 841 | | |
852 | 842 | | |
853 | 843 | | |
854 | 844 | | |
855 | | - | |
| 845 | + | |
856 | 846 | | |
857 | 847 | | |
858 | 848 | | |
| |||
0 commit comments