summaryrefslogtreecommitdiff
path: root/include/scsi/libfcoe.h
diff options
context:
space:
mode:
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>2023-09-07 20:10:07 +0300
committerMark Brown <broonie@kernel.org>2023-09-11 13:34:39 +0100
commit611b8813a28f49e206e05198dae77c544c72b050 (patch)
treefc3db1c97ec39a22ba87d42763aaeecc7f5c9e0b /include/scsi/libfcoe.h
parent3db52739aca981a436536423a36ab59b9f241096 (diff)
downloadlwn-611b8813a28f49e206e05198dae77c544c72b050.tar.gz
lwn-611b8813a28f49e206e05198dae77c544c72b050.zip
ASoC: cs35l41: 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: ERROR: modpost: "cs35l41_pm_ops" [sound/soc/codecs/snd-soc-cs35l41-spi.ko] undefined! ERROR: modpost: "cs35l41_pm_ops" [sound/soc/codecs/snd-soc-cs35l41-i2c.ko] undefined! Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Reviewed-by: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20230907171010.1447274-9-cristian.ciocaltea@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/scsi/libfcoe.h')
0 files changed, 0 insertions, 0 deletions