mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-02 16:44:59 +00:00
ASoC: cs42l43: Use new-style PM runtime macros
Update to the newer style PM runtime macros, no functional change. Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com Link: https://lore.kernel.org/r/20230824103902.1606288-1-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org
This commit is contained in:
parent
a74048432f
commit
2b59332ead
@ -2238,7 +2238,7 @@ static int cs42l43_codec_remove(struct platform_device *pdev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __maybe_unused cs42l43_codec_runtime_resume(struct device *dev)
|
static int cs42l43_codec_runtime_resume(struct device *dev)
|
||||||
{
|
{
|
||||||
struct cs42l43_codec *priv = dev_get_drvdata(dev);
|
struct cs42l43_codec *priv = dev_get_drvdata(dev);
|
||||||
|
|
||||||
@ -2250,9 +2250,8 @@ static int __maybe_unused cs42l43_codec_runtime_resume(struct device *dev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct dev_pm_ops cs42l43_codec_pm_ops = {
|
DEFINE_RUNTIME_DEV_PM_OPS(cs42l43_codec_pm_ops, NULL,
|
||||||
SET_RUNTIME_PM_OPS(NULL, cs42l43_codec_runtime_resume, NULL)
|
cs42l43_codec_runtime_resume, NULL);
|
||||||
};
|
|
||||||
|
|
||||||
static const struct platform_device_id cs42l43_codec_id_table[] = {
|
static const struct platform_device_id cs42l43_codec_id_table[] = {
|
||||||
{ "cs42l43-codec", },
|
{ "cs42l43-codec", },
|
||||||
|
Loading…
Reference in New Issue
Block a user