[PATCH] 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 --- sound/soc/codecs/cs42l43.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/sound/soc/codecs/cs42l43.c b/sound/soc/codecs/cs42l43.c index 18178ffa82f21..24e718e511746 100644 --- a/sound/soc/codecs/cs42l43.c +++ b/sound/soc/codecs/cs42l43.c @@ -2238,7 +2238,7 @@ static int cs42l43_codec_remove(struct platform_device *pdev) 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);
@@ -2250,9 +2250,8 @@ static int __maybe_unused cs42l43_codec_runtime_resume(struct device *dev) return 0; }
-static const struct dev_pm_ops cs42l43_codec_pm_ops = { - SET_RUNTIME_PM_OPS(NULL, cs42l43_codec_runtime_resume, NULL) -}; +DEFINE_RUNTIME_DEV_PM_OPS(cs42l43_codec_pm_ops, NULL, + cs42l43_codec_runtime_resume, NULL);
static const struct platform_device_id cs42l43_codec_id_table[] = { { "cs42l43-codec", },
On Thu, 24 Aug 2023 11:39:02 +0100, Charles Keepax wrote:
Update to the newer style PM runtime macros, no functional change.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: cs42l43: Use new-style PM runtime macros commit: 2b59332ead54870ed0f1a8b122a1d640a4865fdc
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks, Mark
participants (2)
-
Charles Keepax
-
Mark Brown