Commit d0774bc
Input: lm8323 - switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
SIMPLE_DEV_PM_OPS() is deprecated as it requires explicit protection
against unused function warnings. The new combination of pm_sleep_ptr()
and DEFINE_SIMPLE_DEV_PM_OPS() allows the compiler to see the functions,
thus suppressing the warning, but still allowing the unused code to be
removed. Thus also drop the ifdef guards.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20221204180841.2211588-14-jic23@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>1 parent 03ea337 commit d0774bc
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
773 | | - | |
774 | 773 | | |
775 | 774 | | |
776 | 775 | | |
| |||
814 | 813 | | |
815 | 814 | | |
816 | 815 | | |
817 | | - | |
818 | 816 | | |
819 | | - | |
| 817 | + | |
820 | 818 | | |
821 | 819 | | |
822 | 820 | | |
| |||
826 | 824 | | |
827 | 825 | | |
828 | 826 | | |
829 | | - | |
| 827 | + | |
830 | 828 | | |
831 | 829 | | |
832 | 830 | | |
| |||
0 commit comments