diff options
author | Ricardo Rivera-Matos <rriveram@opensource.cirrus.com> | 2023-12-06 10:03:16 -0600 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-12-06 23:06:55 +0000 |
commit | 12e102b1bd22ee00361559d57a5876445bcb2407 (patch) | |
tree | 692007366df9de5bbcdb4b542add09dc94f83616 /sound/soc/codecs/wm8904.c | |
parent | d20d36755a605a21e737b6b16c566658589b1811 (diff) |
ASoC: cs35l45: Use modern pm_ops
Make use of the recently introduced EXPORT_GPL_DEV_PM_OPS() macro, to
conditionally export the runtime/system PM functions.
Replace the old SET_{RUNTIME,SYSTEM_SLEEP,NOIRQ_SYSTEM_SLEEP}_PM_OPS()
helpers with their modern alternatives and get rid of the now
unnecessary '__maybe_unused' annotations on all PM functions.
Additionally, use the pm_ptr() macro to fix the following errors when
building with CONFIG_PM disabled:
Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20231206160318.1255034-2-rriveram@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm8904.c')
0 files changed, 0 insertions, 0 deletions