Commit 46dd1b0
ASoC: ak4458: Convert to RUNTIME_PM_OPS() & co
commit 9f9c8e9 upstream.
Use the newer RUNTIME_PM_OPS() and SYSTEM_SLEEP_PM_OPS() macros
instead of SET_RUNTIME_PM_OPS() and SET_SYSTEM_SLEEP_PM_OPS() together
with pm_ptr(), which allows us dropping ugly __maybe_unused attributes
and CONFIG_PM ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20250317095603.20073-4-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent a093803 commit 46dd1b0
1 file changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
642 | | - | |
643 | | - | |
| 642 | + | |
644 | 643 | | |
645 | 644 | | |
646 | 645 | | |
| |||
656 | 655 | | |
657 | 656 | | |
658 | 657 | | |
659 | | - | |
| 658 | + | |
660 | 659 | | |
661 | 660 | | |
662 | 661 | | |
| |||
686 | 685 | | |
687 | 686 | | |
688 | 687 | | |
689 | | - | |
690 | 688 | | |
691 | 689 | | |
692 | 690 | | |
| |||
735 | 733 | | |
736 | 734 | | |
737 | 735 | | |
738 | | - | |
739 | | - | |
740 | | - | |
| 736 | + | |
| 737 | + | |
741 | 738 | | |
742 | 739 | | |
743 | 740 | | |
| |||
809 | 806 | | |
810 | 807 | | |
811 | 808 | | |
812 | | - | |
| 809 | + | |
813 | 810 | | |
814 | 811 | | |
815 | 812 | | |
| |||
0 commit comments