ASoC: Convert to modern PM macros
Subsystems (27)
v2 cover ASoC: Convert to modern PM macros
This is a revised series of small and trivial patches to convert to the newer PM macros, e.g. from SET_RUNTIME_PM_OPS() to RUNTIME_PM_OPS().
The conversions are systematic, and we could reduce messy __maybe_unused and ifdefs with those changes.
Merely code refactoring, and shouldn't change the actual driver behavior.
v1: https://lore.kernel.org/[email protected]
v1->v2:
* Fix typos in comments and some macro usages
* Fix incorrect strings for EXPORT_NS_*()
* Drop cs35l56 patch that may break builds
Takashi
===
Takashi Iwai (88):
ASoC: au1x: Convert to DEFINE_SIMPLE_DEV_PM_OPS()
ASoC: ak4375: Convert to RUNTIME_PM_OPS() & co
ASoC: ak4458: Convert to RUNTIME_PM_OPS() & co
ASoC: ak5558: Convert to RUNTIME_PM_OPS() & co
ASoC: cs35l32: Convert to RUNTIME_PM_OPS()
ASoC: cs35l33: Convert to RUNTIME_PM_OPS()
ASoC: cs35l34: Convert to RUNTIME_PM_OPS()
ASoC: cs4234: Convert to RUNTIME_PM_OPS()
ASoC: cs42l42: Convert to RUNTIME_PM_OPS() & co
ASoC: cs42l51: Convert to SYSTEM_SLEEP_PM_OPS()
ASoC: cs42l83: Convert to SYSTEM_SLEEP_PM_OPS()
ASoC: cs42xx8: Convert to EXPORT_GPL_DEV_PM_OPS()
ASoC: cs43130: Convert to RUNTIME_PM_OPS()
ASoC: cs4349: Convert to RUNTIME_PM_OPS()
ASoC: cs53l30: Convert to RUNTIME_PM_OPS()
ASoC: cx2072x: Convert to RUNTIME_PM_OPS() & co
ASoC: da7213: Convert to RUNTIME_PM_OPS() & co
ASoC: hdac_hdmi: Convert to RUNTIME_PM_OPS() & co
ASoC: lpass: Convert to RUNTIME_PM_OPS()
ASoC: max98090: Convert to RUNTIME_PM_OPS() & co
ASoC: max98373: Convert to RUNTIME_PM_OPS() & co
ASoC: max98390: Convert to SYSTEM_SLEEP_PM_OPS()
ASoC: max98396: Convert to SYSTEM_SLEEP_PM_OPS()
ASoC: max98520: Convert to SYSTEM_SLEEP_PM_OPS()
ASoC: max9860: Convert to RUNTIME_PM_OPS()
ASoC: max98927: Convert to SYSTEM_SLEEP_PM_OPS()
ASoC: mt6660: Convert to RUNTIME_PM_OPS()
ASoC: pcm512x: Convert to EXPORT_GPL_DEV_PM_OPS()
ASoC: rt1017-sdca-sdw: Convert to RUNTIME_PM_OPS() & co
ASoC: rt1308-sdw: Convert to RUNTIME_PM_OPS() & co
ASoC: rt1316-sdw: Convert to RUNTIME_PM_OPS() & co
ASoC: rt1318-sdw: Convert to RUNTIME_PM_OPS() & co
ASoC: rt1320-sdw: Convert to RUNTIME_PM_OPS() & co
ASoC: rt5514: Convert to SYSTEM_SLEEP_PM_OPS()
ASoC: rt5645: Convert to SYSTEM_SLEEP_PM_OPS()
ASoC: rt5682-sdw: Convert to RUNTIME_PM_OPS() & co
ASoC: rt700-sdw: Convert to RUNTIME_PM_OPS() & co
ASoC: rt711: Convert to RUNTIME_PM_OPS() & co
ASoC: rt712: Convert to RUNTIME_PM_OPS() & co
ASoC: rt715: Convert to RUNTIME_PM_OPS() & co
ASoC: rt721: Convert to RUNTIME_PM_OPS() & co
ASoC: rt722: Convert to RUNTIME_PM_OPS() & co
ASoC: rt9120: Convert to RUNTIME_PM_OPS()
ASoC: rtq9128: Convert to RUNTIME_PM_OPS()
ASoC: tas2552: Convert to RUNTIME_PM_OPS()
ASoC: ts3a227e: Convert to SYSTEM_SLEEP_PM_OPS()
ASoC: wcd937x: Convert to RUNTIME_PM_OPS()
ASoC: wcd938x: Convert to RUNTIME_PM_OPS()
ASoC: wcd939x: Convert to RUNTIME_PM_OPS()
ASoC: wm2200: Convert to RUNTIME_PM_OPS()
ASoC: wm5100: Convert to RUNTIME_PM_OPS()
ASoC: wm8804: Convert to EXPORT_GPL_DEV_PM_OPS()
ASoC: wm8962: Convert to RUNTIME_PM_OPS() & co
ASoC: wm8994: Convert to SYSTEM_SLEEP_PM_OPS()
ASoC: wsa881x: Convert to RUNTIME_PM_OPS()
ASoC: wsa883x: Convert to RUNTIME_PM_OPS()
ASoC: wsa884x: Convert to RUNTIME_PM_OPS()
ASoC: dwc: Convert to RUNTIME_PM_OPS()
ASoC: fsl: Convert to RUNTIME_PM_OPS() and co
ASoC: img: Convert to RUNTIME_PM_OPS() and co
ASoC: intel: avs: Convert to RUNTIME_PM_OPS()
ASoC: intel: catpt: Convert to RUNTIME_PM_OPS() & co
ASoC: mediatek: mt2701: Convert to RUNTIME_PM_OPS()
ASoC: mediatek: mt6797: Convert to RUNTIME_PM_OPS()
ASoC: mediatek: mt7986: Convert to RUNTIME_PM_OPS()
ASoC: mediatek: mt8173: Convert to RUNTIME_PM_OPS()
ASoC: mediatek: mt8183: Convert to RUNTIME_PM_OPS()
ASoC: mediatek: mt8186: Convert to RUNTIME_PM_OPS()
ASoC: mediatek: mt8188: Convert to RUNTIME_PM_OPS()
ASoC: mediatek: mt8192: Convert to RUNTIME_PM_OPS()
ASoC: mediatek: mt8195: Convert to RUNTIME_PM_OPS()
ASoC: mediatek: mt8365: Convert to RUNTIME_PM_OPS() & co
ASoC: qcom: Convert to SYSTEM_SLEEP_PM_OPS()
ASoC: rcar: Convert to SYSTEM_SLEEP_PM_OPS()
ASoC: rockchip: Convert to RUNTIME_PM_OPS() & co
ASoC: samsung: Convert to RUNTIME_PM_OPS() & co
ASoC: SOF: acpi: Convert to EXPORT_NS_DEV_PM_OPS()
ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS()
ASoC: SOF: of: Convert to EXPORT_DEV_PM_OPS()
ASoC: stm: Convert to SYSTEM_SLEEP_PM_OPS()
ASoC: sunxi: Convert to RUNTIME_PM_OPS()
ASoC: tegra186: Convert to RUNTIME_PM_OPS() & co
ASoC: tegra210: Convert to RUNTIME_PM_OPS() & co
ASoC: tegra20: Convert to RUNTIME_PM_OPS() & co
ASoC: tegra30: Convert to RUNTIME_PM_OPS() & co
ASoC: xtensa: Convert to RUNTIME_PM_OPS()
ASoC: amd: Convert to RUNTIME_PM_OPS() & co
ASoC: pcm3168a: Convert to EXPORT_GPL_DEV_PM_OPS()
sound/soc/amd/acp/acp-pci.c | 10 ++++----- sound/soc/amd/acp/acp-rembrandt.c | 6 +++--- sound/soc/amd/acp/acp-renoir.c | 6 +++--- sound/soc/amd/acp/acp63.c | 6 +++--- sound/soc/amd/acp/acp70.c | 6 +++--- sound/soc/amd/ps/pci-ps.c | 12 +++++------ sound/soc/amd/ps/ps-pdm-dma.c | 12 +++++------ sound/soc/amd/ps/ps-sdw-dma.c | 6 +++--- sound/soc/amd/rpl/rpl-pci-acp6x.c | 10 ++++----- sound/soc/amd/vangogh/acp5x-pcm-dma.c | 11 +++++----- sound/soc/amd/yc/acp6x-pdm-dma.c | 12 +++++------ sound/soc/amd/yc/pci-acp6x.c | 10 ++++----- sound/soc/au1x/i2sc.c | 17 +++------------ sound/soc/au1x/psc-ac97.c | 17 +++------------ sound/soc/au1x/psc-i2s.c | 17 +++------------ sound/soc/codecs/ak4375.c | 11 +++++----- sound/soc/codecs/ak4458.c | 13 +++++------- sound/soc/codecs/ak5558.c | 11 +++++----- sound/soc/codecs/cs35l32.c | 7 ++----- sound/soc/codecs/cs35l33.c | 10 ++++----- sound/soc/codecs/cs35l34.c | 10 ++++----- sound/soc/codecs/cs4234.c | 8 ++++---- sound/soc/codecs/cs42l42-i2c.c | 6 +++--- sound/soc/codecs/cs42l42-sdw.c | 16 +++++++-------- sound/soc/codecs/cs42l51-i2c.c | 2 +- sound/soc/codecs/cs42l51.c | 4 ++-- sound/soc/codecs/cs42l83-i2c.c | 6 +++--- sound/soc/codecs/cs42xx8-i2c.c | 2 +- sound/soc/codecs/cs42xx8.c | 10 +++------ sound/soc/codecs/cs43130.c | 9 ++++---- sound/soc/codecs/cs4349.c | 7 ++----- sound/soc/codecs/cs53l30.c | 7 ++----- sound/soc/codecs/cx2072x.c | 12 +++++------ sound/soc/codecs/da7213.c | 10 ++++----- sound/soc/codecs/hdac_hdmi.c | 15 +++----------- sound/soc/codecs/lpass-rx-macro.c | 8 ++++---- sound/soc/codecs/lpass-tx-macro.c | 8 ++++---- sound/soc/codecs/lpass-va-macro.c | 8 ++++---- sound/soc/codecs/lpass-wsa-macro.c | 8 ++++---- sound/soc/codecs/max98090.c | 11 +++------- sound/soc/codecs/max98373-i2c.c | 6 ++---- sound/soc/codecs/max98373-sdw.c | 10 ++++----- sound/soc/codecs/max98390.c | 6 ++---- sound/soc/codecs/max98396.c | 6 ++---- sound/soc/codecs/max98520.c | 8 ++++---- sound/soc/codecs/max9860.c | 6 ++---- sound/soc/codecs/max98927.c | 6 ++---- sound/soc/codecs/mt6660.c | 9 ++++---- sound/soc/codecs/pcm3168a-i2c.c | 2 +- sound/soc/codecs/pcm3168a-spi.c | 2 +- sound/soc/codecs/pcm3168a.c | 7 ++----- sound/soc/codecs/pcm512x-i2c.c | 2 +- sound/soc/codecs/pcm512x-spi.c | 2 +- sound/soc/codecs/pcm512x.c | 7 ++----- sound/soc/codecs/rt1017-sdca-sdw.c | 10 ++++----- sound/soc/codecs/rt1308-sdw.c | 10 ++++----- sound/soc/codecs/rt1316-sdw.c | 10 ++++----- sound/soc/codecs/rt1318-sdw.c | 10 ++++----- sound/soc/codecs/rt1320-sdw.c | 10 ++++----- sound/soc/codecs/rt5514-spi.c | 8 ++++---- sound/soc/codecs/rt5514.c | 6 +++--- sound/soc/codecs/rt5645.c | 8 ++++---- sound/soc/codecs/rt5682-sdw.c | 12 +++++------ sound/soc/codecs/rt700-sdw.c | 12 +++++------ sound/soc/codecs/rt711-sdca-sdw.c | 12 +++++------ sound/soc/codecs/rt711-sdw.c | 12 +++++------ sound/soc/codecs/rt712-sdca-dmic.c | 12 +++++------ sound/soc/codecs/rt712-sdca-sdw.c | 12 +++++------ sound/soc/codecs/rt715-sdca-sdw.c | 10 ++++----- sound/soc/codecs/rt715-sdw.c | 10 ++++----- sound/soc/codecs/rt721-sdca-sdw.c | 12 +++++------ sound/soc/codecs/rt722-sdca-sdw.c | 12 +++++------ sound/soc/codecs/rt9120.c | 8 ++++---- sound/soc/codecs/rtq9128.c | 8 ++++---- sound/soc/codecs/tas2552.c | 9 ++------ sound/soc/codecs/ts3a227e.c | 6 ++---- sound/soc/codecs/wcd937x-sdw.c | 8 ++++---- sound/soc/codecs/wcd938x-sdw.c | 8 ++++---- sound/soc/codecs/wcd939x-sdw.c | 8 ++++---- sound/soc/codecs/wm2200.c | 7 ++----- sound/soc/codecs/wm5100.c | 7 ++----- sound/soc/codecs/wm8804-i2c.c | 2 +- sound/soc/codecs/wm8804-spi.c | 2 +- sound/soc/codecs/wm8804.c | 7 ++----- sound/soc/codecs/wm8962.c | 8 +++----- sound/soc/codecs/wm8994.c | 6 ++---- sound/soc/codecs/wsa881x.c | 8 ++++---- sound/soc/codecs/wsa883x.c | 8 ++++---- sound/soc/codecs/wsa884x.c | 8 ++++---- sound/soc/dwc/dwc-i2s.c | 6 +++--- sound/soc/fsl/fsl_aud2htx.c | 3 +-- sound/soc/fsl/fsl_esai.c | 9 +++----- sound/soc/fsl/fsl_micfil.c | 9 +++----- sound/soc/fsl/fsl_sai.c | 8 +++----- sound/soc/fsl/fsl_xcvr.c | 3 +-- sound/soc/img/img-i2s-in.c | 9 +++----- sound/soc/img/img-i2s-out.c | 9 +++----- sound/soc/img/img-parallel-out.c | 5 ++--- sound/soc/img/img-spdif-in.c | 9 +++----- sound/soc/img/img-spdif-out.c | 10 ++++----- sound/soc/img/pistachio-internal-dac.c | 8 +++----- sound/soc/intel/avs/core.c | 24 +++++++++++----------- sound/soc/intel/catpt/device.c | 14 ++++++------- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 6 +++--- sound/soc/mediatek/mt6797/mt6797-afe-pcm.c | 6 +++--- sound/soc/mediatek/mt7986/mt7986-afe-pcm.c | 6 +++--- sound/soc/mediatek/mt8173/mt8173-afe-pcm.c | 6 +++--- sound/soc/mediatek/mt8183/mt8183-afe-pcm.c | 6 +++--- sound/soc/mediatek/mt8186/mt8186-afe-pcm.c | 6 +++--- sound/soc/mediatek/mt8188/mt8188-afe-pcm.c | 6 +++--- sound/soc/mediatek/mt8192/mt8192-afe-pcm.c | 6 +++--- sound/soc/mediatek/mt8195/mt8195-afe-pcm.c | 6 +++--- sound/soc/mediatek/mt8365/mt8365-afe-pcm.c | 19 ++++++++--------- sound/soc/qcom/lpass-sc7180.c | 8 ++++---- sound/soc/qcom/lpass-sc7280.c | 8 ++++---- sound/soc/renesas/rcar/core.c | 8 ++++---- sound/soc/rockchip/rockchip_i2s.c | 5 ++--- sound/soc/rockchip/rockchip_i2s_tdm.c | 16 +++++++-------- sound/soc/rockchip/rockchip_pdm.c | 10 ++++----- sound/soc/rockchip/rockchip_spdif.c | 9 ++++---- sound/soc/samsung/i2s.c | 10 +++------ sound/soc/sof/amd/pci-acp63.c | 2 +- sound/soc/sof/amd/pci-acp70.c | 2 +- sound/soc/sof/amd/pci-rn.c | 2 +- sound/soc/sof/amd/pci-vangogh.c | 2 +- sound/soc/sof/imx/imx8.c | 2 +- sound/soc/sof/imx/imx9.c | 2 +- sound/soc/sof/intel/bdw.c | 2 +- sound/soc/sof/intel/byt.c | 2 +- sound/soc/sof/intel/pci-apl.c | 2 +- sound/soc/sof/intel/pci-cnl.c | 2 +- sound/soc/sof/intel/pci-icl.c | 2 +- sound/soc/sof/intel/pci-lnl.c | 2 +- sound/soc/sof/intel/pci-mtl.c | 2 +- sound/soc/sof/intel/pci-ptl.c | 2 +- sound/soc/sof/intel/pci-skl.c | 2 +- sound/soc/sof/intel/pci-tgl.c | 2 +- sound/soc/sof/intel/pci-tng.c | 2 +- sound/soc/sof/mediatek/mt8186/mt8186.c | 2 +- sound/soc/sof/mediatek/mt8195/mt8195.c | 2 +- sound/soc/sof/sof-acpi-dev.c | 9 ++++---- sound/soc/sof/sof-of-dev.c | 8 +++----- sound/soc/sof/sof-pci-dev.c | 9 ++++---- sound/soc/stm/stm32_i2s.c | 6 ++---- sound/soc/stm/stm32_sai.c | 6 ++---- sound/soc/stm/stm32_sai_sub.c | 6 ++---- sound/soc/stm/stm32_spdifrx.c | 6 ++---- sound/soc/sunxi/sun4i-spdif.c | 6 +++--- sound/soc/sunxi/sun50i-dmic.c | 6 +++--- sound/soc/sunxi/sun8i-codec.c | 6 +++--- sound/soc/tegra/tegra186_asrc.c | 13 ++++++------ sound/soc/tegra/tegra186_dspk.c | 13 ++++++------ sound/soc/tegra/tegra20_i2s.c | 13 ++++++------ sound/soc/tegra/tegra20_spdif.c | 13 ++++++------ sound/soc/tegra/tegra210_admaif.c | 13 ++++++------ sound/soc/tegra/tegra210_adx.c | 13 ++++++------ sound/soc/tegra/tegra210_ahub.c | 13 ++++++------ sound/soc/tegra/tegra210_amx.c | 13 ++++++------ sound/soc/tegra/tegra210_dmic.c | 13 ++++++------ sound/soc/tegra/tegra210_i2s.c | 13 ++++++------ sound/soc/tegra/tegra210_mixer.c | 13 ++++++------ sound/soc/tegra/tegra210_mvc.c | 13 ++++++------ sound/soc/tegra/tegra210_ope.c | 13 ++++++------ sound/soc/tegra/tegra210_sfc.c | 13 ++++++------ sound/soc/tegra/tegra30_ahub.c | 13 ++++++------ sound/soc/tegra/tegra30_i2s.c | 13 ++++++------ sound/soc/xtensa/xtfpga-i2s.c | 6 +++--- 167 files changed, 591 insertions(+), 764 deletions(-)
Signature · 1 line
2.43.0
PATCH v2 1/88 ASoC: au1x: Convert to DEFINE_SIMPLE_DEV_PM_OPS()
Use the new DEFINE_SIMPLE_DEV_PM_OPS() macro instead of open code together with pm_ptr(), which allows us dropping CONFIG_PM ifdefs.
Merely a cleanup, there should be no actual code change.
--- sound/soc/au1x/i2sc.c | 17 +++-------------- sound/soc/au1x/psc-ac97.c | 17 +++-------------- sound/soc/au1x/psc-i2s.c | 17 +++-------------- 3 files changed, 9 insertions(+), 42 deletions(-)
sound/soc/au1x/i2sc.c +3 -14
@@ -279,7 +279,6 @@ static void au1xi2s_drvremove(struct platform_device *pdev)WR (ctx,I2S_ENABLE ,EN_D );/* clock off, disable */ } -#ifdef CONFIG_PM static int au1xi2s_drvsuspend (struct device *dev) {struct au1xpsc_audio_data *ctx =dev_get_drvdata (dev);
@@ -294,23 +293,13 @@ static int au1xi2s_drvresume(struct device *dev)return 0 ; } -static const struct dev_pm_ops au1xi2sc_pmops = { - .suspend = au1xi2s_drvsuspend, - .resume = au1xi2s_drvresume, -}; - -#define AU1XI2SC_PMOPS (&au1xi2sc_pmops) - -#else - -#define AU1XI2SC_PMOPS NULL - -#endif +static DEFINE_SIMPLE_DEV_PM_OPS(au1xi2sc_pmops, au1xi2s_drvsuspend, + au1xi2s_drvresume);static struct platform_driver au1xi2s_driver = { .driver = { .name ="alchemy-i2sc" , - .pm =AU1XI2SC_PMOPS , + .pm =pm_ptr (&au1xi2sc_pmops), }, .probe = au1xi2s_drvprobe, .remove = au1xi2s_drvremove,
sound/soc/au1x/psc-ac97.c +3 -14
@@ -436,7 +436,6 @@ static void au1xpsc_ac97_drvremove(struct platform_device *pdev) au1xpsc_ac97_workdata =NULL ;/* MDEV */ } -#ifdef CONFIG_PM static int au1xpsc_ac97_drvsuspend (struct device *dev) {struct au1xpsc_audio_data *wd =dev_get_drvdata (dev);
@@ -467,23 +466,13 @@ static int au1xpsc_ac97_drvresume(struct device *dev)return 0 ; } -static const struct dev_pm_ops au1xpscac97_pmops = { - .suspend = au1xpsc_ac97_drvsuspend, - .resume = au1xpsc_ac97_drvresume, -}; - -#define AU1XPSCAC97_PMOPS &au1xpscac97_pmops - -#else - -#define AU1XPSCAC97_PMOPS NULL - -#endif +static DEFINE_SIMPLE_DEV_PM_OPS(au1xpscac97_pmops, au1xpsc_ac97_drvsuspend, + au1xpsc_ac97_drvresume);static struct platform_driver au1xpsc_ac97_driver = { .driver = { .name ="au1xpsc_ac97" , - .pm =AU1XPSCAC97_PMOPS , + .pm =pm_ptr (&au1xpscac97_pmops), }, .probe = au1xpsc_ac97_drvprobe, .remove = au1xpsc_ac97_drvremove,
sound/soc/au1x/psc-i2s.c +3 -14
@@ -354,7 +354,6 @@ static void au1xpsc_i2s_drvremove(struct platform_device *pdev)wmb ();/* drain writebuffer */ } -#ifdef CONFIG_PM static int au1xpsc_i2s_drvsuspend (struct device *dev) {struct au1xpsc_audio_data *wd =dev_get_drvdata (dev);
@@ -385,23 +384,13 @@ static int au1xpsc_i2s_drvresume(struct device *dev)return 0 ; } -static const struct dev_pm_ops au1xpsci2s_pmops = { - .suspend = au1xpsc_i2s_drvsuspend, - .resume = au1xpsc_i2s_drvresume, -}; - -#define AU1XPSCI2S_PMOPS &au1xpsci2s_pmops - -#else - -#define AU1XPSCI2S_PMOPS NULL - -#endif +static DEFINE_SIMPLE_DEV_PM_OPS(au1xpsci2s_pmops, au1xpsc_i2s_drvsuspend, + au1xpsc_i2s_drvresume);static struct platform_driver au1xpsc_i2s_driver = { .driver = { .name ="au1xpsc_i2s" , - .pm =AU1XPSCI2S_PMOPS , + .pm =pm_ptr (&au1xpsci2s_pmops), }, .probe = au1xpsc_i2s_drvprobe, .remove = au1xpsc_i2s_drvremove,
Signature · 1 line
2.43.0
PATCH v2 2/88 ASoC: ak4375: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/ak4375.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
sound/soc/codecs/ak4375.c +5 -6
@@ -438,7 +438,7 @@ static int ak4375_power_on(struct ak4375_priv *ak4375)return 0 ; } -static int __maybe_unused ak4375_runtime_suspend (struct device *dev) +static int ak4375_runtime_suspend (struct device *dev) {struct ak4375_priv *ak4375 =dev_get_drvdata (dev);
@@ -448,7 +448,7 @@ static int __maybe_unused ak4375_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused ak4375_runtime_resume (struct device *dev) +static int ak4375_runtime_resume (struct device *dev) {struct ak4375_priv *ak4375 =dev_get_drvdata (dev);int ret;
@@ -490,9 +490,8 @@ static const struct ak4375_drvdata ak4375_drvdata = { };static const struct dev_pm_ops ak4375_pm = { - SET_RUNTIME_PM_OPS(ak4375_runtime_suspend, ak4375_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(ak4375_runtime_suspend, ak4375_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static int ak4375_i2c_probe (struct i2c_client *i2c)
@@ -594,7 +593,7 @@ MODULE_DEVICE_TABLE(of, ak4375_of_match);static struct i2c_driver ak4375_i2c_driver = { .driver = { .name ="ak4375" , - .pm = &ak4375_pm, + .pm =pm_ptr (&ak4375_pm), .of_match_table = ak4375_of_match, }, .probe = ak4375_i2c_probe,
Signature · 1 line
2.43.0
PATCH v2 3/88 ASoC: ak4458: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
--- sound/soc/codecs/ak4458.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)
sound/soc/codecs/ak4458.c +5 -8
@@ -639,8 +639,7 @@ static void ak4458_reset(struct ak4458_priv *ak4458, bool active) } } -#ifdef CONFIG_PM -static int __maybe_unused ak4458_runtime_suspend (struct device *dev) +static int ak4458_runtime_suspend (struct device *dev) {struct ak4458_priv *ak4458 =dev_get_drvdata (dev);
@@ -656,7 +655,7 @@ static int __maybe_unused ak4458_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused ak4458_runtime_resume (struct device *dev) +static int ak4458_runtime_resume (struct device *dev) {struct ak4458_priv *ak4458 =dev_get_drvdata (dev);int ret;
@@ -678,7 +677,6 @@ static int __maybe_unused ak4458_runtime_resume(struct device *dev)return regcache_sync (ak4458->regmap); } -#endif /* CONFIG_PM */ static const struct snd_soc_component_driver soc_codec_dev_ak4458 = { .controls = ak4458_snd_controls,
@@ -727,9 +725,8 @@ static const struct ak4458_drvdata ak4497_drvdata = { };static const struct dev_pm_ops ak4458_pm = { - SET_RUNTIME_PM_OPS(ak4458_runtime_suspend, ak4458_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(ak4458_runtime_suspend, ak4458_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static int ak4458_i2c_probe (struct i2c_client *i2c)
@@ -805,7 +802,7 @@ MODULE_DEVICE_TABLE(of, ak4458_of_match);static struct i2c_driver ak4458_i2c_driver = { .driver = { .name ="ak4458" , - .pm = &ak4458_pm, + .pm =pm_ptr (&ak4458_pm), .of_match_table = ak4458_of_match, }, .probe = ak4458_i2c_probe,
Signature · 1 line
2.43.0
PATCH v2 4/88 ASoC: ak5558: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/ak5558.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
sound/soc/codecs/ak5558.c +5 -6
@@ -342,7 +342,7 @@ static void ak5558_remove(struct snd_soc_component *component)ak5558_reset (ak5558, true); } -static int __maybe_unused ak5558_runtime_suspend (struct device *dev) +static int ak5558_runtime_suspend (struct device *dev) {struct ak5558_priv *ak5558 =dev_get_drvdata (dev);
@@ -354,7 +354,7 @@ static int __maybe_unused ak5558_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused ak5558_runtime_resume (struct device *dev) +static int ak5558_runtime_resume (struct device *dev) {struct ak5558_priv *ak5558 =dev_get_drvdata (dev);int ret;
@@ -376,9 +376,8 @@ static int __maybe_unused ak5558_runtime_resume(struct device *dev) }static const struct dev_pm_ops ak5558_pm = { - SET_RUNTIME_PM_OPS(ak5558_runtime_suspend, ak5558_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(ak5558_runtime_suspend, ak5558_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static const struct snd_soc_component_driver soc_codec_dev_ak5558 = {
@@ -495,7 +494,7 @@ static struct i2c_driver ak5558_i2c_driver = { .driver = { .name = "ak5558", .of_match_table = of_match_ptr(ak5558_i2c_dt_ids), - .pm = &ak5558_pm, + .pm = pm_ptr(&ak5558_pm), }, .probe = ak5558_i2c_probe, .remove = ak5558_i2c_remove,
Signature · 1 line
2.43.0
PATCH v2 5/88 ASoC: cs35l32: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping superfluous CONFIG_PM ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/cs35l32.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
sound/soc/codecs/cs35l32.c +2 -5
@@ -504,7 +504,6 @@ static void cs35l32_i2c_remove(struct i2c_client *i2c_client)gpiod_set_value_cansleep (cs35l32->reset_gpio,0 ); } -#ifdef CONFIG_PM static int cs35l32_runtime_suspend (struct device *dev) {struct cs35l32_private *cs35l32 =dev_get_drvdata (dev);
@@ -543,11 +542,9 @@ static int cs35l32_runtime_resume(struct device *dev)return 0 ; } -#endif static const struct dev_pm_ops cs35l32_runtime_pm = { -SET_RUNTIME_PM_OPS (cs35l32_runtime_suspend, cs35l32_runtime_resume, -NULL ) +RUNTIME_PM_OPS (cs35l32_runtime_suspend, cs35l32_runtime_resume,NULL ) };static const struct of_device_id cs35l32_of_match[] = {
@@ -567,7 +564,7 @@ MODULE_DEVICE_TABLE(i2c, cs35l32_id);static struct i2c_driver cs35l32_i2c_driver = { .driver = { .name ="cs35l32" , - .pm = &cs35l32_runtime_pm, + .pm =pm_ptr (&cs35l32_runtime_pm), .of_match_table = cs35l32_of_match, }, .id_table = cs35l32_id,
Signature · 1 line
2.43.0
PATCH v2 6/88 ASoC: cs35l33: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/cs35l33.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
sound/soc/codecs/cs35l33.c +4 -6
@@ -853,7 +853,7 @@ static const struct regmap_config cs35l33_regmap = { .use_single_write = true, }; -static int __maybe_unused cs35l33_runtime_resume (struct device *dev) +static int cs35l33_runtime_resume (struct device *dev) {struct cs35l33_private *cs35l33 =dev_get_drvdata (dev);int ret;
@@ -891,7 +891,7 @@ static int __maybe_unused cs35l33_runtime_resume(struct device *dev)return ret; } -static int __maybe_unused cs35l33_runtime_suspend (struct device *dev) +static int cs35l33_runtime_suspend (struct device *dev) {struct cs35l33_private *cs35l33 =dev_get_drvdata (dev);
@@ -909,9 +909,7 @@ static int __maybe_unused cs35l33_runtime_suspend(struct device *dev) }static const struct dev_pm_ops cs35l33_pm_ops = { -SET_RUNTIME_PM_OPS (cs35l33_runtime_suspend, - cs35l33_runtime_resume, -NULL ) +RUNTIME_PM_OPS (cs35l33_runtime_suspend, cs35l33_runtime_resume,NULL ) }; static int cs35l33_get_hg_data(const struct device_node *np,
@@ -1273,7 +1271,7 @@ MODULE_DEVICE_TABLE(i2c, cs35l33_id);static struct i2c_driver cs35l33_i2c_driver = { .driver = { .name ="cs35l33" , - .pm = &cs35l33_pm_ops, + .pm =pm_ptr (&cs35l33_pm_ops), .of_match_table = cs35l33_of_match, },
Signature · 1 line
2.43.0
PATCH v2 7/88 ASoC: cs35l34: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/cs35l34.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
sound/soc/codecs/cs35l34.c +4 -6
@@ -1116,7 +1116,7 @@ static void cs35l34_i2c_remove(struct i2c_client *client) cs35l34->core_supplies); } -static int __maybe_unused cs35l34_runtime_resume (struct device *dev) +static int cs35l34_runtime_resume (struct device *dev) {struct cs35l34_private *cs35l34 =dev_get_drvdata (dev);int ret;
@@ -1149,7 +1149,7 @@ static int __maybe_unused cs35l34_runtime_resume(struct device *dev)return ret; } -static int __maybe_unused cs35l34_runtime_suspend (struct device *dev) +static int cs35l34_runtime_suspend (struct device *dev) {struct cs35l34_private *cs35l34 =dev_get_drvdata (dev);
@@ -1165,9 +1165,7 @@ static int __maybe_unused cs35l34_runtime_suspend(struct device *dev) }static const struct dev_pm_ops cs35l34_pm_ops = { -SET_RUNTIME_PM_OPS (cs35l34_runtime_suspend, - cs35l34_runtime_resume, -NULL ) +RUNTIME_PM_OPS (cs35l34_runtime_suspend, cs35l34_runtime_resume,NULL ) };static const struct of_device_id cs35l34_of_match[] = {
@@ -1185,7 +1183,7 @@ MODULE_DEVICE_TABLE(i2c, cs35l34_id);static struct i2c_driver cs35l34_i2c_driver = { .driver = { .name ="cs35l34" , - .pm = &cs35l34_pm_ops, + .pm =pm_ptr (&cs35l34_pm_ops), .of_match_table = cs35l34_of_match, },
Signature · 1 line
2.43.0
PATCH v2 8/88 ASoC: cs4234: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/cs4234.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/cs4234.c +4 -4
@@ -860,7 +860,7 @@ static void cs4234_i2c_remove(struct i2c_client *i2c_client)cs4234_shutdown (cs4234); } -static int __maybe_unused cs4234_runtime_resume (struct device *dev) +static int cs4234_runtime_resume (struct device *dev) {struct cs4234 *cs4234 =dev_get_drvdata (dev);int ret;
@@ -881,7 +881,7 @@ static int __maybe_unused cs4234_runtime_resume(struct device *dev)return 0 ; } -static int __maybe_unused cs4234_runtime_suspend (struct device *dev) +static int cs4234_runtime_suspend (struct device *dev) {struct cs4234 *cs4234 =dev_get_drvdata (dev);
@@ -891,7 +891,7 @@ static int __maybe_unused cs4234_runtime_suspend(struct device *dev) }static const struct dev_pm_ops cs4234_pm = { -SET_RUNTIME_PM_OPS (cs4234_runtime_suspend, cs4234_runtime_resume,NULL ) +RUNTIME_PM_OPS (cs4234_runtime_suspend, cs4234_runtime_resume,NULL ) };static const struct of_device_id cs4234_of_match[] = {
@@ -903,7 +903,7 @@ MODULE_DEVICE_TABLE(of, cs4234_of_match);static struct i2c_driver cs4234_i2c_driver = { .driver = { .name ="cs4234" , - .pm = &cs4234_pm, + .pm =pm_ptr (&cs4234_pm), .of_match_table = cs4234_of_match, }, .probe = cs4234_i2c_probe,
Signature · 1 line
2.43.0
PATCH v2 9/88 ASoC: cs42l42: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/cs42l42-i2c.c | 6 +++--- sound/soc/codecs/cs42l42-sdw.c | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-)
sound/soc/codecs/cs42l42-i2c.c +3 -3
@@ -48,7 +48,7 @@ static void cs42l42_i2c_remove(struct i2c_client *i2c_client)cs42l42_common_remove (cs42l42); } -static int __maybe_unused cs42l42_i2c_resume (struct device *dev) +static int cs42l42_i2c_resume (struct device *dev) {int ret;
@@ -62,7 +62,7 @@ static int __maybe_unused cs42l42_i2c_resume(struct device *dev) }static const struct dev_pm_ops cs42l42_i2c_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (cs42l42_suspend, cs42l42_i2c_resume) +SYSTEM_SLEEP_PM_OPS (cs42l42_suspend, cs42l42_i2c_resume) };static const struct of_device_id __maybe_unused cs42l42_of_match[] = {
@@ -87,7 +87,7 @@ MODULE_DEVICE_TABLE(i2c, cs42l42_id);static struct i2c_driver cs42l42_i2c_driver = { .driver = { .name ="cs42l42" , - .pm = &cs42l42_i2c_pm_ops, + .pm =pm_ptr (&cs42l42_i2c_pm_ops), .of_match_table =of_match_ptr (cs42l42_of_match), .acpi_match_table =ACPI_PTR (cs42l42_acpi_match), },
sound/soc/codecs/cs42l42-sdw.c +8 -8
@@ -411,7 +411,7 @@ static const struct sdw_slave_ops cs42l42_sdw_ops = { .port_prep = cs42l42_sdw_port_prep, }; -static int __maybe_unused cs42l42_sdw_runtime_suspend (struct device *dev) +static int cs42l42_sdw_runtime_suspend (struct device *dev) {struct cs42l42_private *cs42l42 =dev_get_drvdata (dev);
@@ -426,11 +426,11 @@ static int __maybe_unused cs42l42_sdw_runtime_suspend(struct device *dev)return 0 ; } -static const struct reg_sequence __maybe_unused cs42l42_soft_reboot_seq[] = { +static const struct reg_sequence cs42l42_soft_reboot_seq[] = {REG_SEQ0 (CS42L42_SOFT_RESET_REBOOT ,0x1e ), }; -static int __maybe_unused cs42l42_sdw_handle_unattach (struct cs42l42_private *cs42l42) +static int cs42l42_sdw_handle_unattach (struct cs42l42_private *cs42l42) {struct sdw_slave *peripheral = cs42l42->sdw_peripheral;
@@ -460,7 +460,7 @@ static int __maybe_unused cs42l42_sdw_handle_unattach(struct cs42l42_private *csreturn 0 ; } -static int __maybe_unused cs42l42_sdw_runtime_resume (struct device *dev) +static int cs42l42_sdw_runtime_resume (struct device *dev) {static const unsigned int ts_dbnce_ms[] = {0 ,125 ,250 ,500 ,750 ,1000 ,1250 ,1500 };struct cs42l42_private *cs42l42 =dev_get_drvdata (dev);
@@ -491,7 +491,7 @@ static int __maybe_unused cs42l42_sdw_runtime_resume(struct device *dev)return 0 ; } -static int __maybe_unused cs42l42_sdw_resume (struct device *dev) +static int cs42l42_sdw_resume (struct device *dev) {struct cs42l42_private *cs42l42 =dev_get_drvdata (dev);int ret;
@@ -596,8 +596,8 @@ static int cs42l42_sdw_remove(struct sdw_slave *peripheral) }static const struct dev_pm_ops cs42l42_sdw_pm = { - SET_SYSTEM_SLEEP_PM_OPS(cs42l42_suspend, cs42l42_sdw_resume) -SET_RUNTIME_PM_OPS (cs42l42_sdw_runtime_suspend, cs42l42_sdw_runtime_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(cs42l42_suspend, cs42l42_sdw_resume) +RUNTIME_PM_OPS (cs42l42_sdw_runtime_suspend, cs42l42_sdw_runtime_resume,NULL ) };static const struct sdw_device_id cs42l42_sdw_id[] = {
@@ -609,7 +609,7 @@ MODULE_DEVICE_TABLE(sdw, cs42l42_sdw_id);static struct sdw_driver cs42l42_sdw_driver = { .driver = { .name ="cs42l42-sdw" , - .pm = &cs42l42_sdw_pm, + .pm =pm_ptr (&cs42l42_sdw_pm), }, .probe = cs42l42_sdw_probe, .remove = cs42l42_sdw_remove,
Signature · 1 line
2.43.0
PATCH v2 10/88 ASoC: cs42l51: Convert to SYSTEM_SLEEP_PM_OPS()
In reply to Takashi IwaiUse the newer SYSTEM_SLEEP_PM_OPS() macro instead of SET_SYSTEM_SLEEP_PM_OPS().
Also, drop superfluous __maybe_unused attributes to cs42l51_suspend() and _resume() functions.
Merely a cleanup, there should be no actual code change.
--- sound/soc/codecs/cs42l51-i2c.c | 2 +- sound/soc/codecs/cs42l51.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/cs42l51-i2c.c +1 -1
@@ -40,7 +40,7 @@ static void cs42l51_i2c_remove(struct i2c_client *i2c) }static const struct dev_pm_ops cs42l51_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (cs42l51_suspend, cs42l51_resume) +SYSTEM_SLEEP_PM_OPS (cs42l51_suspend, cs42l51_resume) };static struct i2c_driver cs42l51_i2c_driver = {
sound/soc/codecs/cs42l51.c +2 -2
@@ -805,7 +805,7 @@ void cs42l51_remove(struct device *dev) }EXPORT_SYMBOL_GPL (cs42l51_remove); -int __maybe_unused cs42l51_suspend (struct device *dev) +int cs42l51_suspend (struct device *dev) {struct cs42l51_private *cs42l51 =dev_get_drvdata (dev);
@@ -816,7 +816,7 @@ int __maybe_unused cs42l51_suspend(struct device *dev) }EXPORT_SYMBOL_GPL (cs42l51_suspend); -int __maybe_unused cs42l51_resume (struct device *dev) +int cs42l51_resume (struct device *dev) {struct cs42l51_private *cs42l51 =dev_get_drvdata (dev);
Signature · 1 line
2.43.0
PATCH v2 11/88 ASoC: cs42l83: Convert to SYSTEM_SLEEP_PM_OPS()
In reply to Takashi IwaiUse the newer SYSTEM_SLEEP_PM_OPS() macro instead of SET_SYSTEM_SLEEP_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/cs42l83-i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/cs42l83-i2c.c +3 -3
@@ -199,7 +199,7 @@ static void cs42l83_i2c_remove(struct i2c_client *i2c_client)cs42l42_common_remove (cs42l83); } -static int __maybe_unused cs42l83_i2c_resume (struct device *dev) +static int cs42l83_i2c_resume (struct device *dev) {int ret;
@@ -213,7 +213,7 @@ static int __maybe_unused cs42l83_i2c_resume(struct device *dev) }static const struct dev_pm_ops cs42l83_i2c_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (cs42l42_suspend, cs42l83_i2c_resume) +SYSTEM_SLEEP_PM_OPS (cs42l42_suspend, cs42l83_i2c_resume) };static const struct of_device_id __maybe_unused cs42l83_of_match[] = {
@@ -225,7 +225,7 @@ MODULE_DEVICE_TABLE(of, cs42l83_of_match);static struct i2c_driver cs42l83_i2c_driver = { .driver = { .name ="cs42l83" , - .pm = &cs42l83_i2c_pm_ops, + .pm =pm_ptr (&cs42l83_i2c_pm_ops), .of_match_table =of_match_ptr (cs42l83_of_match), }, .probe = cs42l83_i2c_probe,
Signature · 1 line
2.43.0
PATCH v2 12/88 ASoC: cs42xx8: Convert to EXPORT_GPL_DEV_PM_OPS()
In reply to Takashi IwaiUse the newer EXPORT_GPL_DEV_PM_OPS() macro together with pm_ptr(), which allows us to drop superfluous CONFIG_PM ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/cs42xx8-i2c.c | 2 +- sound/soc/codecs/cs42xx8.c | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-)
sound/soc/codecs/cs42xx8-i2c.c +1 -1
@@ -61,7 +61,7 @@ MODULE_DEVICE_TABLE(i2c, cs42xx8_i2c_id);static struct i2c_driver cs42xx8_i2c_driver = { .driver = { .name ="cs42xx8" , - .pm = &cs42xx8_pm, + .pm =pm_ptr (&cs42xx8_pm), .of_match_table = cs42xx8_of_match, }, .probe = cs42xx8_i2c_probe,
sound/soc/codecs/cs42xx8.c +3 -7
@@ -606,7 +606,6 @@ int cs42xx8_probe(struct device *dev, struct regmap *regmap, struct cs42xx8_driv }EXPORT_SYMBOL_GPL (cs42xx8_probe); -#ifdef CONFIG_PM static int cs42xx8_runtime_resume (struct device *dev) {struct cs42xx8_priv *cs42xx8 =dev_get_drvdata (dev);
@@ -665,14 +664,11 @@ static int cs42xx8_runtime_suspend(struct device *dev)return 0 ; } -#endif -const struct dev_pm_ops cs42xx8_pm = { - SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, - pm_runtime_force_resume) -SET_RUNTIME_PM_OPS (cs42xx8_runtime_suspend, cs42xx8_runtime_resume,NULL ) +EXPORT_GPL_DEV_PM_OPS (cs42xx8_pm) = { + SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume) +RUNTIME_PM_OPS (cs42xx8_runtime_suspend, cs42xx8_runtime_resume,NULL ) }; -EXPORT_SYMBOL_GPL (cs42xx8_pm);MODULE_DESCRIPTION ("Cirrus Logic CS42448/CS42888 ALSA SoC Codec Driver" );MODULE_AUTHOR ("Freescale Semiconductor, Inc." );
Signature · 1 line
2.43.0
PATCH v2 13/88 ASoC: cs43130: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/cs43130.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
sound/soc/codecs/cs43130.c +4 -5
@@ -2672,7 +2672,7 @@ static void cs43130_i2c_remove(struct i2c_client *client)regulator_bulk_disable (CS43130_NUM_SUPPLIES , cs43130->supplies); } -static int __maybe_unused cs43130_runtime_suspend (struct device *dev) +static int cs43130_runtime_suspend (struct device *dev) {struct cs43130_private *cs43130 =dev_get_drvdata (dev);
@@ -2691,7 +2691,7 @@ static int __maybe_unused cs43130_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused cs43130_runtime_resume (struct device *dev) +static int cs43130_runtime_resume (struct device *dev) {struct cs43130_private *cs43130 =dev_get_drvdata (dev);int ret;
@@ -2727,8 +2727,7 @@ static int __maybe_unused cs43130_runtime_resume(struct device *dev) }static const struct dev_pm_ops cs43130_runtime_pm = { -SET_RUNTIME_PM_OPS (cs43130_runtime_suspend, cs43130_runtime_resume, -NULL ) +RUNTIME_PM_OPS (cs43130_runtime_suspend, cs43130_runtime_resume,NULL ) };#if IS_ENABLED (CONFIG_OF )
@@ -2768,7 +2767,7 @@ static struct i2c_driver cs43130_i2c_driver = { .name = "cs43130", .of_match_table = of_match_ptr(cs43130_of_match), .acpi_match_table = ACPI_PTR(cs43130_acpi_match), - .pm = &cs43130_runtime_pm, + .pm = pm_ptr(&cs43130_runtime_pm), }, .id_table = cs43130_i2c_id, .probe = cs43130_i2c_probe,
Signature · 1 line
2.43.0
PATCH v2 14/88 ASoC: cs4349: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping superfluous CONFIG_PM ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/cs4349.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
sound/soc/codecs/cs4349.c +2 -5
@@ -312,7 +312,6 @@ static void cs4349_i2c_remove(struct i2c_client *client)gpiod_set_value_cansleep (cs4349->reset_gpio,0 ); } -#ifdef CONFIG_PM static int cs4349_runtime_suspend (struct device *dev) {struct cs4349_private *cs4349 =dev_get_drvdata (dev);
@@ -346,11 +345,9 @@ static int cs4349_runtime_resume(struct device *dev)return 0 ; } -#endif static const struct dev_pm_ops cs4349_runtime_pm = { -SET_RUNTIME_PM_OPS (cs4349_runtime_suspend, cs4349_runtime_resume, -NULL ) +RUNTIME_PM_OPS (cs4349_runtime_suspend, cs4349_runtime_resume,NULL ) };static const struct of_device_id cs4349_of_match[] = {
@@ -371,7 +368,7 @@ static struct i2c_driver cs4349_i2c_driver = { .driver = { .name = "cs4349", .of_match_table = cs4349_of_match, - .pm = &cs4349_runtime_pm, + .pm = pm_ptr(&cs4349_runtime_pm), }, .id_table = cs4349_i2c_id, .probe = cs4349_i2c_probe,
Signature · 1 line
2.43.0
PATCH v2 15/88 ASoC: cs53l30: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping superfluous CONFIG_PM ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/cs53l30.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
sound/soc/codecs/cs53l30.c +2 -5
@@ -1031,7 +1031,6 @@ static void cs53l30_i2c_remove(struct i2c_client *client) cs53l30->supplies); } -#ifdef CONFIG_PM static int cs53l30_runtime_suspend (struct device *dev) {struct cs53l30_private *cs53l30 =dev_get_drvdata (dev);
@@ -1070,11 +1069,9 @@ static int cs53l30_runtime_resume(struct device *dev)return 0 ; } -#endif static const struct dev_pm_ops cs53l30_runtime_pm = { -SET_RUNTIME_PM_OPS (cs53l30_runtime_suspend, cs53l30_runtime_resume, -NULL ) +RUNTIME_PM_OPS (cs53l30_runtime_suspend, cs53l30_runtime_resume,NULL ) };static const struct of_device_id cs53l30_of_match[] = {
@@ -1095,7 +1092,7 @@ static struct i2c_driver cs53l30_i2c_driver = { .driver = { .name = "cs53l30", .of_match_table = cs53l30_of_match, - .pm = &cs53l30_runtime_pm, + .pm = pm_ptr(&cs53l30_runtime_pm), }, .id_table = cs53l30_id, .probe = cs53l30_i2c_probe,
Signature · 1 line
2.43.0
PATCH v2 16/88 ASoC: cx2072x: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/cx2072x.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
sound/soc/codecs/cx2072x.c +5 -7
@@ -1611,7 +1611,7 @@ static const struct regmap_config cx2072x_regmap = { .reg_write = cx2072x_reg_write, }; -static int __maybe_unused cx2072x_runtime_suspend (struct device *dev) +static int cx2072x_runtime_suspend (struct device *dev) {struct cx2072x_priv *cx2072x =dev_get_drvdata (dev);
@@ -1619,7 +1619,7 @@ static int __maybe_unused cx2072x_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused cx2072x_runtime_resume (struct device *dev) +static int cx2072x_runtime_resume (struct device *dev) {struct cx2072x_priv *cx2072x =dev_get_drvdata (dev);
@@ -1696,17 +1696,15 @@ MODULE_DEVICE_TABLE(acpi, cx2072x_acpi_match);#endif static const struct dev_pm_ops cx2072x_runtime_pm = { - SET_RUNTIME_PM_OPS(cx2072x_runtime_suspend, cx2072x_runtime_resume, - NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(cx2072x_runtime_suspend, cx2072x_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct i2c_driver cx2072x_i2c_driver = { .driver = { .name ="cx2072x" , .acpi_match_table =ACPI_PTR (cx2072x_acpi_match), - .pm = &cx2072x_runtime_pm, + .pm =pm_ptr (&cx2072x_runtime_pm), }, .probe = cx2072x_i2c_probe, .remove = cx2072x_i2c_remove,
Signature · 1 line
2.43.0
PATCH v2 17/88 ASoC: da7213: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/da7213.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/codecs/da7213.c +5 -5
@@ -2224,7 +2224,7 @@ static void da7213_i2c_remove(struct i2c_client *i2c)pm_runtime_disable (&i2c->dev); } -static int __maybe_unused da7213_runtime_suspend (struct device *dev) +static int da7213_runtime_suspend (struct device *dev) {struct da7213_priv *da7213 =dev_get_drvdata (dev);
@@ -2235,7 +2235,7 @@ static int __maybe_unused da7213_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused da7213_runtime_resume (struct device *dev) +static int da7213_runtime_resume (struct device *dev) {struct da7213_priv *da7213 =dev_get_drvdata (dev);int ret;
@@ -2248,8 +2248,8 @@ static int __maybe_unused da7213_runtime_resume(struct device *dev) }static const struct dev_pm_ops da7213_pm = { - SET_RUNTIME_PM_OPS(da7213_runtime_suspend, da7213_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) + RUNTIME_PM_OPS(da7213_runtime_suspend, da7213_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static const struct i2c_device_id da7213_i2c_id[] = {
@@ -2264,7 +2264,7 @@ static struct i2c_driver da7213_i2c_driver = { .name = "da7213", .of_match_table = of_match_ptr(da7213_of_match), .acpi_match_table = ACPI_PTR(da7213_acpi_match), - .pm = &da7213_pm, + .pm = pm_ptr(&da7213_pm), }, .probe = da7213_i2c_probe, .remove = da7213_i2c_remove,
Signature · 1 line
2.43.0
PATCH v2 18/88 ASoC: hdac_hdmi: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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 superfluous CONFIG_PM ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/hdac_hdmi.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-)
sound/soc/codecs/hdac_hdmi.c +3 -12
@@ -2032,7 +2032,6 @@ static void hdmi_codec_remove(struct snd_soc_component *component)pm_runtime_disable (&hdev->dev); } -#ifdef CONFIG_PM_SLEEP static int hdmi_codec_resume (struct device *dev) {struct hdac_device *hdev =dev_to_hdac_dev (dev);
@@ -2055,9 +2054,6 @@ static int hdmi_codec_resume(struct device *dev)hdac_hdmi_present_sense_all_pins (hdev, hdmi, false);return 0 ; } -#else -#define hdmi_codec_resume NULL -#endif static const struct snd_soc_component_driver hdmi_hda_codec = { .probe = hdmi_codec_probe,
@@ -2227,7 +2223,6 @@ static int hdac_hdmi_dev_remove(struct hdac_device *hdev)return 0 ; } -#ifdef CONFIG_PM static int hdac_hdmi_runtime_suspend (struct device *dev) {struct hdac_device *hdev =dev_to_hdac_dev (dev);
@@ -2296,14 +2291,10 @@ static int hdac_hdmi_runtime_resume(struct device *dev)return 0 ; } -#else -#define hdac_hdmi_runtime_suspend NULL -#define hdac_hdmi_runtime_resume NULL -#endif static const struct dev_pm_ops hdac_hdmi_pm = { - SET_RUNTIME_PM_OPS(hdac_hdmi_runtime_suspend, hdac_hdmi_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, hdmi_codec_resume) + RUNTIME_PM_OPS(hdac_hdmi_runtime_suspend, hdac_hdmi_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, hdmi_codec_resume) };static const struct hda_device_id hdmi_list[] = {
@@ -2322,7 +2313,7 @@ MODULE_DEVICE_TABLE(hdaudio, hdmi_list);static struct hdac_driver hdmi_driver = { .driver = { .name ="HDMI HDA Codec" , - .pm = &hdac_hdmi_pm, + .pm =pm_ptr (&hdac_hdmi_pm), }, .id_table = hdmi_list, .probe = hdac_hdmi_dev_probe,
Signature · 1 line
2.43.0
PATCH v2 19/88 ASoC: lpass: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/lpass-rx-macro.c | 8 ++++---- sound/soc/codecs/lpass-tx-macro.c | 8 ++++---- sound/soc/codecs/lpass-va-macro.c | 8 ++++---- sound/soc/codecs/lpass-wsa-macro.c | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-)
sound/soc/codecs/lpass-rx-macro.c +4 -4
@@ -3963,7 +3963,7 @@ static const struct of_device_id rx_macro_dt_match[] = { };MODULE_DEVICE_TABLE (of, rx_macro_dt_match); -static int __maybe_unused rx_macro_runtime_suspend (struct device *dev) +static int rx_macro_runtime_suspend (struct device *dev) {struct rx_macro *rx =dev_get_drvdata (dev);
@@ -3977,7 +3977,7 @@ static int __maybe_unused rx_macro_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused rx_macro_runtime_resume (struct device *dev) +static int rx_macro_runtime_resume (struct device *dev) {struct rx_macro *rx =dev_get_drvdata (dev);int ret;
@@ -4012,7 +4012,7 @@ static int __maybe_unused rx_macro_runtime_resume(struct device *dev) }static const struct dev_pm_ops rx_macro_pm_ops = { -SET_RUNTIME_PM_OPS (rx_macro_runtime_suspend, rx_macro_runtime_resume,NULL ) +RUNTIME_PM_OPS (rx_macro_runtime_suspend, rx_macro_runtime_resume,NULL ) };static struct platform_driver rx_macro_driver = {
@@ -4020,7 +4020,7 @@ static struct platform_driver rx_macro_driver = { .name = "rx_macro", .of_match_table = rx_macro_dt_match, .suppress_bind_attrs = true, - .pm = &rx_macro_pm_ops, + .pm = pm_ptr(&rx_macro_pm_ops), }, .probe = rx_macro_probe, .remove = rx_macro_remove,
sound/soc/codecs/lpass-tx-macro.c +4 -4
@@ -2400,7 +2400,7 @@ static void tx_macro_remove(struct platform_device *pdev)lpass_macro_pds_exit (tx->pds); } -static int __maybe_unused tx_macro_runtime_suspend (struct device *dev) +static int tx_macro_runtime_suspend (struct device *dev) {struct tx_macro *tx =dev_get_drvdata (dev);
@@ -2414,7 +2414,7 @@ static int __maybe_unused tx_macro_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused tx_macro_runtime_resume (struct device *dev) +static int tx_macro_runtime_resume (struct device *dev) {struct tx_macro *tx =dev_get_drvdata (dev);int ret;
@@ -2450,7 +2450,7 @@ static int __maybe_unused tx_macro_runtime_resume(struct device *dev) }static const struct dev_pm_ops tx_macro_pm_ops = { -SET_RUNTIME_PM_OPS (tx_macro_runtime_suspend, tx_macro_runtime_resume,NULL ) +RUNTIME_PM_OPS (tx_macro_runtime_suspend, tx_macro_runtime_resume,NULL ) };static const struct tx_macro_data lpass_ver_9 = {
@@ -2531,7 +2531,7 @@ static struct platform_driver tx_macro_driver = { .name = "tx_macro", .of_match_table = tx_macro_dt_match, .suppress_bind_attrs = true, - .pm = &tx_macro_pm_ops, + .pm = pm_ptr(&tx_macro_pm_ops), }, .probe = tx_macro_probe, .remove = tx_macro_remove,
sound/soc/codecs/lpass-va-macro.c +4 -4
@@ -1674,7 +1674,7 @@ static void va_macro_remove(struct platform_device *pdev)lpass_macro_pds_exit (va->pds); } -static int __maybe_unused va_macro_runtime_suspend (struct device *dev) +static int va_macro_runtime_suspend (struct device *dev) {struct va_macro *va =dev_get_drvdata (dev);
@@ -1689,7 +1689,7 @@ static int __maybe_unused va_macro_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused va_macro_runtime_resume (struct device *dev) +static int va_macro_runtime_resume (struct device *dev) {struct va_macro *va =dev_get_drvdata (dev);int ret;
@@ -1717,7 +1717,7 @@ static int __maybe_unused va_macro_runtime_resume(struct device *dev)static const struct dev_pm_ops va_macro_pm_ops = { -SET_RUNTIME_PM_OPS (va_macro_runtime_suspend, va_macro_runtime_resume,NULL ) +RUNTIME_PM_OPS (va_macro_runtime_suspend, va_macro_runtime_resume,NULL ) };static const struct of_device_id va_macro_dt_match[] = {
@@ -1735,7 +1735,7 @@ static struct platform_driver va_macro_driver = { .name = "va_macro", .of_match_table = va_macro_dt_match, .suppress_bind_attrs = true, - .pm = &va_macro_pm_ops, + .pm = pm_ptr(&va_macro_pm_ops), }, .probe = va_macro_probe, .remove = va_macro_remove,
sound/soc/codecs/lpass-wsa-macro.c +4 -4
@@ -2900,7 +2900,7 @@ static void wsa_macro_remove(struct platform_device *pdev)clk_disable_unprepare (wsa->fsgen); } -static int __maybe_unused wsa_macro_runtime_suspend (struct device *dev) +static int wsa_macro_runtime_suspend (struct device *dev) {struct wsa_macro *wsa =dev_get_drvdata (dev);
@@ -2914,7 +2914,7 @@ static int __maybe_unused wsa_macro_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused wsa_macro_runtime_resume (struct device *dev) +static int wsa_macro_runtime_resume (struct device *dev) {struct wsa_macro *wsa =dev_get_drvdata (dev);int ret;
@@ -2950,7 +2950,7 @@ static int __maybe_unused wsa_macro_runtime_resume(struct device *dev) }static const struct dev_pm_ops wsa_macro_pm_ops = { -SET_RUNTIME_PM_OPS (wsa_macro_runtime_suspend, wsa_macro_runtime_resume,NULL ) +RUNTIME_PM_OPS (wsa_macro_runtime_suspend, wsa_macro_runtime_resume,NULL ) };static const struct of_device_id wsa_macro_dt_match[] = {
@@ -2977,7 +2977,7 @@ static struct platform_driver wsa_macro_driver = { .driver = { .name = "wsa_macro", .of_match_table = wsa_macro_dt_match, - .pm = &wsa_macro_pm_ops, + .pm = pm_ptr(&wsa_macro_pm_ops), }, .probe = wsa_macro_probe, .remove = wsa_macro_remove,
Signature · 1 line
2.43.0
PATCH v2 20/88 ASoC: max98090: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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 superfluous CONFIG_PM and CONFIG_PM_SLEEP ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/max98090.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
sound/soc/codecs/max98090.c +3 -8
@@ -2604,7 +2604,6 @@ static void max98090_i2c_remove(struct i2c_client *client)max98090_i2c_shutdown (client); } -#ifdef CONFIG_PM static int max98090_runtime_resume (struct device *dev) {struct max98090_priv *max98090 =dev_get_drvdata (dev);
@@ -2626,9 +2625,7 @@ static int max98090_runtime_suspend(struct device *dev)return 0 ; } -#endif -#ifdef CONFIG_PM_SLEEP static int max98090_resume (struct device *dev) {struct max98090_priv *max98090 =dev_get_drvdata (dev);
@@ -2645,12 +2642,10 @@ static int max98090_resume(struct device *dev)return 0 ; } -#endif static const struct dev_pm_ops max98090_pm = { - SET_RUNTIME_PM_OPS(max98090_runtime_suspend, - max98090_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (NULL , max98090_resume) + RUNTIME_PM_OPS(max98090_runtime_suspend, max98090_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (NULL , max98090_resume) };#ifdef CONFIG_OF
@@ -2673,7 +2668,7 @@ MODULE_DEVICE_TABLE(acpi, max98090_acpi_match);static struct i2c_driver max98090_i2c_driver = { .driver = { .name ="max98090" , - .pm = &max98090_pm, + .pm =pm_ptr (&max98090_pm), .of_match_table =of_match_ptr (max98090_of_match), .acpi_match_table =ACPI_PTR (max98090_acpi_match), },
Signature · 1 line
2.43.0
PATCH v2 21/88 ASoC: max98373: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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 superfluous CONFIG_PM and CONFIG_PM_SLEEP ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/max98373-i2c.c | 6 ++---- sound/soc/codecs/max98373-sdw.c | 10 +++++----- 2 files changed, 7 insertions(+), 9 deletions(-)
sound/soc/codecs/max98373-i2c.c +2 -4
@@ -472,7 +472,6 @@ static struct snd_soc_dai_driver max98373_dai[] = { } }; -#ifdef CONFIG_PM_SLEEP static int max98373_suspend (struct device *dev) {struct max98373_priv *max98373 =dev_get_drvdata (dev);
@@ -496,10 +495,9 @@ static int max98373_resume(struct device *dev)regcache_sync (max98373->regmap);return 0 ; } -#endif static const struct dev_pm_ops max98373_pm = { -SET_SYSTEM_SLEEP_PM_OPS (max98373_suspend, max98373_resume) +SYSTEM_SLEEP_PM_OPS (max98373_suspend, max98373_resume) };static const struct regmap_config max98373_regmap = {
@@ -605,7 +603,7 @@ static struct i2c_driver max98373_i2c_driver = { .name = "max98373", .of_match_table = of_match_ptr(max98373_of_match), .acpi_match_table = ACPI_PTR(max98373_acpi_match), - .pm = &max98373_pm, + .pm = pm_ptr(&max98373_pm), }, .probe = max98373_i2c_probe, .id_table = max98373_i2c_id,
sound/soc/codecs/max98373-sdw.c +5 -5
@@ -246,7 +246,7 @@ static const struct regmap_config max98373_sdw_regmap = { };/* Power management functions and structure */ -static __maybe_unused int max98373_suspend (struct device *dev) +static int max98373_suspend (struct device *dev) {struct max98373_priv *max98373 =dev_get_drvdata (dev);int i;
@@ -262,7 +262,7 @@ static __maybe_unused int max98373_suspend(struct device *dev)#define MAX98373_PROBE_TIMEOUT 5000 -static __maybe_unused int max98373_resume (struct device *dev) +static int max98373_resume (struct device *dev) {struct sdw_slave *slave =dev_to_sdw_dev (dev);struct max98373_priv *max98373 =dev_get_drvdata (dev);
@@ -292,8 +292,8 @@ static __maybe_unused int max98373_resume(struct device *dev) }static const struct dev_pm_ops max98373_pm = { - SET_SYSTEM_SLEEP_PM_OPS(max98373_suspend, max98373_resume) -SET_RUNTIME_PM_OPS (max98373_suspend, max98373_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(max98373_suspend, max98373_resume) +RUNTIME_PM_OPS (max98373_suspend, max98373_resume,NULL ) };static int max98373_read_prop (struct sdw_slave *slave)
@@ -874,7 +874,7 @@ static struct sdw_driver max98373_sdw_driver = { .name = "max98373", .of_match_table = of_match_ptr(max98373_of_match), .acpi_match_table = ACPI_PTR(max98373_acpi_match), - .pm = &max98373_pm, + .pm = pm_ptr(&max98373_pm), }, .probe = max98373_sdw_probe, .remove = max98373_sdw_remove,
Signature · 1 line
2.43.0
PATCH v2 22/88 ASoC: max98390: Convert to SYSTEM_SLEEP_PM_OPS()
In reply to Takashi IwaiUse the newer SYSTEM_SLEEP_PM_OPS() macro instead of SET_SYSTEM_SLEEP_PM_OPS() together with pm_ptr(), which allows us dropping superfluous CONFIG_PM_SLEEP ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/max98390.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
sound/soc/codecs/max98390.c +2 -4
@@ -943,7 +943,6 @@ static int max98390_probe(struct snd_soc_component *component)return 0 ; } -#ifdef CONFIG_PM_SLEEP static int max98390_suspend (struct device *dev) {struct max98390_priv *max98390 =dev_get_drvdata (dev);
@@ -967,10 +966,9 @@ static int max98390_resume(struct device *dev)return 0 ; } -#endif static const struct dev_pm_ops max98390_pm = { -SET_SYSTEM_SLEEP_PM_OPS (max98390_suspend, max98390_resume) +SYSTEM_SLEEP_PM_OPS (max98390_suspend, max98390_resume) };static const struct snd_soc_component_driver soc_codec_dev_max98390 = {
@@ -1130,7 +1128,7 @@ static struct i2c_driver max98390_i2c_driver = { .name = "max98390", .of_match_table = of_match_ptr(max98390_of_match), .acpi_match_table = ACPI_PTR(max98390_acpi_match), - .pm = &max98390_pm, + .pm = pm_ptr(&max98390_pm), }, .probe = max98390_i2c_probe, .id_table = max98390_i2c_id,
Signature · 1 line
2.43.0
PATCH v2 23/88 ASoC: max98396: Convert to SYSTEM_SLEEP_PM_OPS()
In reply to Takashi IwaiUse the newer SYSTEM_SLEEP_PM_OPS() macro instead of SET_SYSTEM_SLEEP_PM_OPS() together with pm_ptr(), which allows us dropping superfluous CONFIG_PM_SLEEP ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/max98396.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
sound/soc/codecs/max98396.c +2 -4
@@ -1571,7 +1571,6 @@ static int max98396_probe(struct snd_soc_component *component)return 0 ; } -#ifdef CONFIG_PM_SLEEP static int max98396_suspend (struct device *dev) {struct max98396_priv *max98396 =dev_get_drvdata (dev);
@@ -1616,10 +1615,9 @@ static int max98396_resume(struct device *dev)regcache_sync (max98396->regmap);return 0 ; } -#endif static const struct dev_pm_ops max98396_pm = { -SET_SYSTEM_SLEEP_PM_OPS (max98396_suspend, max98396_resume) +SYSTEM_SLEEP_PM_OPS (max98396_suspend, max98396_resume) };static const struct snd_soc_component_driver soc_codec_dev_max98396 = {
@@ -1904,7 +1902,7 @@ static struct i2c_driver max98396_i2c_driver = { .name = "max98396", .of_match_table = of_match_ptr(max98396_of_match), .acpi_match_table = ACPI_PTR(max98396_acpi_match), - .pm = &max98396_pm, + .pm = pm_ptr(&max98396_pm), }, .probe = max98396_i2c_probe, .id_table = max98396_i2c_id,
Signature · 1 line
2.43.0
PATCH v2 24/88 ASoC: max98520: Convert to SYSTEM_SLEEP_PM_OPS()
In reply to Takashi IwaiUse the newer SYSTEM_SLEEP_PM_OPS() macro instead of SET_SYSTEM_SLEEP_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unsed attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/max98520.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/max98520.c +4 -4
@@ -621,7 +621,7 @@ static int max98520_probe(struct snd_soc_component *component)return 0 ; } -static int __maybe_unused max98520_suspend (struct device *dev) +static int max98520_suspend (struct device *dev) {struct max98520_priv *max98520 =dev_get_drvdata (dev);
@@ -630,7 +630,7 @@ static int __maybe_unused max98520_suspend(struct device *dev)return 0 ; } -static int __maybe_unused max98520_resume (struct device *dev) +static int max98520_resume (struct device *dev) {struct max98520_priv *max98520 =dev_get_drvdata (dev);
@@ -641,7 +641,7 @@ static int __maybe_unused max98520_resume(struct device *dev) }static const struct dev_pm_ops max98520_pm = { -SET_SYSTEM_SLEEP_PM_OPS (max98520_suspend, max98520_resume) +SYSTEM_SLEEP_PM_OPS (max98520_suspend, max98520_resume) };static const struct snd_soc_component_driver soc_codec_dev_max98520 = {
@@ -752,7 +752,7 @@ static struct i2c_driver max98520_i2c_driver = { .driver = { .name = "max98520", .of_match_table = of_match_ptr(max98520_of_match), - .pm = &max98520_pm, + .pm = pm_ptr(&max98520_pm), }, .probe = max98520_i2c_probe, .id_table = max98520_i2c_id,
Signature · 1 line
2.43.0
PATCH v2 25/88 ASoC: max9860: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping superfluous CONFIG_PM ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/max9860.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
sound/soc/codecs/max9860.c +2 -4
@@ -539,7 +539,6 @@ static const struct snd_soc_component_driver max9860_component_driver = { .endianness = 1, }; -#ifdef CONFIG_PM static int max9860_suspend (struct device *dev) {struct max9860_priv *max9860 =dev_get_drvdata (dev);
@@ -584,10 +583,9 @@ static int max9860_resume(struct device *dev)return 0 ; } -#endif static const struct dev_pm_ops max9860_pm_ops = { -SET_RUNTIME_PM_OPS (max9860_suspend, max9860_resume,NULL ) +RUNTIME_PM_OPS (max9860_suspend, max9860_resume,NULL ) };static int max9860_probe (struct i2c_client *i2c)
@@ -729,7 +727,7 @@ static struct i2c_driver max9860_i2c_driver = { .driver = { .name = "max9860", .of_match_table = max9860_of_match, - .pm = &max9860_pm_ops, + .pm = pm_ptr(&max9860_pm_ops), }, };
Signature · 1 line
2.43.0
PATCH v2 26/88 ASoC: max98927: Convert to SYSTEM_SLEEP_PM_OPS()
In reply to Takashi IwaiUse the newer SYSTEM_SLEEP_PM_OPS() macro instead of SET_SYSTEM_SLEEP_PM_OPS() together with pm_ptr(), which allows us dropping superfluous CONFIG_PM_SLEEP ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/max98927.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
sound/soc/codecs/max98927.c +2 -4
@@ -731,7 +731,6 @@ static int max98927_probe(struct snd_soc_component *component)return 0 ; } -#ifdef CONFIG_PM_SLEEP static int max98927_suspend (struct device *dev) {struct max98927_priv *max98927 =dev_get_drvdata (dev);
@@ -750,10 +749,9 @@ static int max98927_resume(struct device *dev)regcache_sync (max98927->regmap);return 0 ; } -#endif static const struct dev_pm_ops max98927_pm = { -SET_SYSTEM_SLEEP_PM_OPS (max98927_suspend, max98927_resume) +SYSTEM_SLEEP_PM_OPS (max98927_suspend, max98927_resume) };static const struct snd_soc_component_driver soc_component_dev_max98927 = {
@@ -902,7 +900,7 @@ static struct i2c_driver max98927_i2c_driver = { .name = "max98927", .of_match_table = of_match_ptr(max98927_of_match), .acpi_match_table = ACPI_PTR(max98927_acpi_match), - .pm = &max98927_pm, + .pm = pm_ptr(&max98927_pm), }, .probe = max98927_i2c_probe, .remove = max98927_i2c_remove,
Signature · 1 line
2.43.0
PATCH v2 27/88 ASoC: mt6660: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/mt6660.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
sound/soc/codecs/mt6660.c +4 -5
@@ -529,7 +529,7 @@ static void mt6660_i2c_remove(struct i2c_client *client)mutex_destroy (&chip->io_lock); } -static int __maybe_unused mt6660_i2c_runtime_suspend (struct device *dev) +static int mt6660_i2c_runtime_suspend (struct device *dev) {struct mt6660_chip *chip =dev_get_drvdata (dev);
@@ -538,7 +538,7 @@ static int __maybe_unused mt6660_i2c_runtime_suspend(struct device *dev) MT6660_REG_SYSTEM_CTRL, 0x01, 0x01); } -static int __maybe_unused mt6660_i2c_runtime_resume (struct device *dev) +static int mt6660_i2c_runtime_resume (struct device *dev) {struct mt6660_chip *chip =dev_get_drvdata (dev);
@@ -548,8 +548,7 @@ static int __maybe_unused mt6660_i2c_runtime_resume(struct device *dev) }static const struct dev_pm_ops mt6660_dev_pm_ops = { -SET_RUNTIME_PM_OPS (mt6660_i2c_runtime_suspend, - mt6660_i2c_runtime_resume,NULL ) +RUNTIME_PM_OPS (mt6660_i2c_runtime_suspend, mt6660_i2c_runtime_resume,NULL ) };static const struct of_device_id __maybe_unused mt6660_of_id[] = {
@@ -568,7 +567,7 @@ static struct i2c_driver mt6660_i2c_driver = { .driver = { .name = "mt6660", .of_match_table = of_match_ptr(mt6660_of_id), - .pm = &mt6660_dev_pm_ops, + .pm = pm_ptr(&mt6660_dev_pm_ops), }, .probe = mt6660_i2c_probe, .remove = mt6660_i2c_remove,
Signature · 1 line
2.43.0
PATCH v2 28/88 ASoC: pcm512x: Convert to EXPORT_GPL_DEV_PM_OPS()
In reply to Takashi IwaiUse the newer EXPORT_GPL_DEV_PM_OPS() macro together with pm_ptr(), which allows us to drop superfluous CONFIG_PM ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/pcm512x-i2c.c | 2 +- sound/soc/codecs/pcm512x-spi.c | 2 +- sound/soc/codecs/pcm512x.c | 7 ++----- 3 files changed, 4 insertions(+), 7 deletions(-)
sound/soc/codecs/pcm512x-i2c.c +1 -1
@@ -79,7 +79,7 @@ static struct i2c_driver pcm512x_i2c_driver = { .name = "pcm512x", .of_match_table = of_match_ptr(pcm512x_of_match), .acpi_match_table = ACPI_PTR(pcm512x_acpi_match), - .pm = &pcm512x_pm_ops, + .pm = pm_ptr(&pcm512x_pm_ops), }, };
sound/soc/codecs/pcm512x-spi.c +1 -1
@@ -58,7 +58,7 @@ static struct spi_driver pcm512x_spi_driver = { .driver = { .name = "pcm512x", .of_match_table = pcm512x_of_match, - .pm = &pcm512x_pm_ops, + .pm = pm_ptr(&pcm512x_pm_ops), }, };
sound/soc/codecs/pcm512x.c +2 -5
@@ -1725,7 +1725,6 @@ void pcm512x_remove(struct device *dev) }EXPORT_SYMBOL_GPL (pcm512x_remove); -#ifdef CONFIG_PM static int pcm512x_suspend (struct device *dev) {struct pcm512x_priv *pcm512x =dev_get_drvdata (dev);
@@ -1787,12 +1786,10 @@ static int pcm512x_resume(struct device *dev)return 0 ; } -#endif -const struct dev_pm_ops pcm512x_pm_ops = { -SET_RUNTIME_PM_OPS (pcm512x_suspend, pcm512x_resume,NULL ) +EXPORT_GPL_DEV_PM_OPS (pcm512x_pm_ops) = { +RUNTIME_PM_OPS (pcm512x_suspend, pcm512x_resume,NULL ) }; -EXPORT_SYMBOL_GPL (pcm512x_pm_ops);MODULE_DESCRIPTION ("ASoC PCM512x codec driver" );MODULE_AUTHOR ("Mark Brown <[email protected]>" );
Signature · 1 line
2.43.0
PATCH v2 29/88 ASoC: rt1017-sdca-sdw: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/rt1017-sdca-sdw.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/codecs/rt1017-sdca-sdw.c +5 -5
@@ -758,7 +758,7 @@ static const struct sdw_device_id rt1017_sdca_id[] = { };MODULE_DEVICE_TABLE (sdw, rt1017_sdca_id); -static int __maybe_unused rt1017_sdca_dev_suspend (struct device *dev) +static int rt1017_sdca_dev_suspend (struct device *dev) {struct rt1017_sdca_priv *rt1017 =dev_get_drvdata (dev);
@@ -772,7 +772,7 @@ static int __maybe_unused rt1017_sdca_dev_suspend(struct device *dev)#define RT1017_PROBE_TIMEOUT 5000 -static int __maybe_unused rt1017_sdca_dev_resume (struct device *dev) +static int rt1017_sdca_dev_resume (struct device *dev) {struct sdw_slave *slave =dev_to_sdw_dev (dev);struct rt1017_sdca_priv *rt1017 =dev_get_drvdata (dev);
@@ -802,14 +802,14 @@ static int __maybe_unused rt1017_sdca_dev_resume(struct device *dev) }static const struct dev_pm_ops rt1017_sdca_pm = { - SET_SYSTEM_SLEEP_PM_OPS(rt1017_sdca_dev_suspend, rt1017_sdca_dev_resume) -SET_RUNTIME_PM_OPS (rt1017_sdca_dev_suspend, rt1017_sdca_dev_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(rt1017_sdca_dev_suspend, rt1017_sdca_dev_resume) +RUNTIME_PM_OPS (rt1017_sdca_dev_suspend, rt1017_sdca_dev_resume,NULL ) };static struct sdw_driver rt1017_sdca_sdw_driver = { .driver = { .name ="rt1017-sdca" , - .pm = &rt1017_sdca_pm, + .pm =pm_ptr (&rt1017_sdca_pm), }, .probe = rt1017_sdca_sdw_probe, .remove = rt1017_sdca_sdw_remove,
Signature · 1 line
2.43.0
PATCH v2 30/88 ASoC: rt1308-sdw: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/rt1308-sdw.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/codecs/rt1308-sdw.c +5 -5
@@ -753,7 +753,7 @@ static const struct sdw_device_id rt1308_id[] = { };MODULE_DEVICE_TABLE (sdw, rt1308_id); -static int __maybe_unused rt1308_dev_suspend (struct device *dev) +static int rt1308_dev_suspend (struct device *dev) {struct rt1308_sdw_priv *rt1308 =dev_get_drvdata (dev);
@@ -767,7 +767,7 @@ static int __maybe_unused rt1308_dev_suspend(struct device *dev)#define RT1308_PROBE_TIMEOUT 5000 -static int __maybe_unused rt1308_dev_resume (struct device *dev) +static int rt1308_dev_resume (struct device *dev) {struct sdw_slave *slave =dev_to_sdw_dev (dev);struct rt1308_sdw_priv *rt1308 =dev_get_drvdata (dev);
@@ -797,14 +797,14 @@ static int __maybe_unused rt1308_dev_resume(struct device *dev) }static const struct dev_pm_ops rt1308_pm = { - SET_SYSTEM_SLEEP_PM_OPS(rt1308_dev_suspend, rt1308_dev_resume) -SET_RUNTIME_PM_OPS (rt1308_dev_suspend, rt1308_dev_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(rt1308_dev_suspend, rt1308_dev_resume) +RUNTIME_PM_OPS (rt1308_dev_suspend, rt1308_dev_resume,NULL ) };static struct sdw_driver rt1308_sdw_driver = { .driver = { .name ="rt1308" , - .pm = &rt1308_pm, + .pm =pm_ptr (&rt1308_pm), }, .probe = rt1308_sdw_probe, .remove = rt1308_sdw_remove,
Signature · 1 line
2.43.0
PATCH v2 31/88 ASoC: rt1316-sdw: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/rt1316-sdw.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/codecs/rt1316-sdw.c +5 -5
@@ -730,7 +730,7 @@ static const struct sdw_device_id rt1316_id[] = { };MODULE_DEVICE_TABLE (sdw, rt1316_id); -static int __maybe_unused rt1316_dev_suspend (struct device *dev) +static int rt1316_dev_suspend (struct device *dev) {struct rt1316_sdw_priv *rt1316 =dev_get_drvdata (dev);
@@ -744,7 +744,7 @@ static int __maybe_unused rt1316_dev_suspend(struct device *dev)#define RT1316_PROBE_TIMEOUT 5000 -static int __maybe_unused rt1316_dev_resume (struct device *dev) +static int rt1316_dev_resume (struct device *dev) {struct sdw_slave *slave =dev_to_sdw_dev (dev);struct rt1316_sdw_priv *rt1316 =dev_get_drvdata (dev);
@@ -774,14 +774,14 @@ static int __maybe_unused rt1316_dev_resume(struct device *dev) }static const struct dev_pm_ops rt1316_pm = { - SET_SYSTEM_SLEEP_PM_OPS(rt1316_dev_suspend, rt1316_dev_resume) -SET_RUNTIME_PM_OPS (rt1316_dev_suspend, rt1316_dev_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(rt1316_dev_suspend, rt1316_dev_resume) +RUNTIME_PM_OPS (rt1316_dev_suspend, rt1316_dev_resume,NULL ) };static struct sdw_driver rt1316_sdw_driver = { .driver = { .name ="rt1316-sdca" , - .pm = &rt1316_pm, + .pm =pm_ptr (&rt1316_pm), }, .probe = rt1316_sdw_probe, .remove = rt1316_sdw_remove,
Signature · 1 line
2.43.0
PATCH v2 32/88 ASoC: rt1318-sdw: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/rt1318-sdw.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/codecs/rt1318-sdw.c +5 -5
@@ -807,7 +807,7 @@ static const struct sdw_device_id rt1318_id[] = { };MODULE_DEVICE_TABLE (sdw, rt1318_id); -static int __maybe_unused rt1318_dev_suspend (struct device *dev) +static int rt1318_dev_suspend (struct device *dev) {struct rt1318_sdw_priv *rt1318 =dev_get_drvdata (dev);
@@ -820,7 +820,7 @@ static int __maybe_unused rt1318_dev_suspend(struct device *dev)#define RT1318_PROBE_TIMEOUT 5000 -static int __maybe_unused rt1318_dev_resume (struct device *dev) +static int rt1318_dev_resume (struct device *dev) {struct sdw_slave *slave =dev_to_sdw_dev (dev);struct rt1318_sdw_priv *rt1318 =dev_get_drvdata (dev);
@@ -848,14 +848,14 @@ static int __maybe_unused rt1318_dev_resume(struct device *dev) }static const struct dev_pm_ops rt1318_pm = { - SET_SYSTEM_SLEEP_PM_OPS(rt1318_dev_suspend, rt1318_dev_resume) -SET_RUNTIME_PM_OPS (rt1318_dev_suspend, rt1318_dev_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(rt1318_dev_suspend, rt1318_dev_resume) +RUNTIME_PM_OPS (rt1318_dev_suspend, rt1318_dev_resume,NULL ) };static struct sdw_driver rt1318_sdw_driver = { .driver = { .name ="rt1318-sdca" , - .pm = &rt1318_pm, + .pm =pm_ptr (&rt1318_pm), }, .probe = rt1318_sdw_probe, .remove = rt1318_sdw_remove,
Signature · 1 line
2.43.0
PATCH v2 33/88 ASoC: rt1320-sdw: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/rt1320-sdw.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/codecs/rt1320-sdw.c +5 -5
@@ -1458,7 +1458,7 @@ static const struct sdw_device_id rt1320_id[] = { };MODULE_DEVICE_TABLE (sdw, rt1320_id); -static int __maybe_unused rt1320_dev_suspend (struct device *dev) +static int rt1320_dev_suspend (struct device *dev) {struct rt1320_sdw_priv *rt1320 =dev_get_drvdata (dev);
@@ -1472,7 +1472,7 @@ static int __maybe_unused rt1320_dev_suspend(struct device *dev)#define RT1320_PROBE_TIMEOUT 5000 -static int __maybe_unused rt1320_dev_resume (struct device *dev) +static int rt1320_dev_resume (struct device *dev) {struct sdw_slave *slave =dev_to_sdw_dev (dev);struct rt1320_sdw_priv *rt1320 =dev_get_drvdata (dev);
@@ -1501,14 +1501,14 @@ static int __maybe_unused rt1320_dev_resume(struct device *dev) }static const struct dev_pm_ops rt1320_pm = { - SET_SYSTEM_SLEEP_PM_OPS(rt1320_dev_suspend, rt1320_dev_resume) -SET_RUNTIME_PM_OPS (rt1320_dev_suspend, rt1320_dev_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(rt1320_dev_suspend, rt1320_dev_resume) +RUNTIME_PM_OPS (rt1320_dev_suspend, rt1320_dev_resume,NULL ) };static struct sdw_driver rt1320_sdw_driver = { .driver = { .name ="rt1320-sdca" , - .pm = &rt1320_pm, + .pm =pm_ptr (&rt1320_pm), }, .probe = rt1320_sdw_probe, .remove = rt1320_sdw_remove,
Signature · 1 line
2.43.0
PATCH v2 34/88 ASoC: rt5514: Convert to SYSTEM_SLEEP_PM_OPS()
In reply to Takashi IwaiUse the newer SYSTEM_SLEEP_PM_OPS() macro instead of SET_SYSTEM_SLEEP_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/rt5514-spi.c | 8 ++++---- sound/soc/codecs/rt5514.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-)
sound/soc/codecs/rt5514-spi.c +4 -4
@@ -458,7 +458,7 @@ static int rt5514_spi_probe(struct spi_device *spi)return 0 ; } -static int __maybe_unused rt5514_suspend (struct device *dev) +static int rt5514_suspend (struct device *dev) {int irq =to_spi_device (dev)->irq;
@@ -468,7 +468,7 @@ static int __maybe_unused rt5514_suspend(struct device *dev)return 0 ; } -static int __maybe_unused rt5514_resume (struct device *dev) +static int rt5514_resume (struct device *dev) {struct rt5514_dsp *rt5514_dsp =dev_get_drvdata (dev);int irq =to_spi_device (dev)->irq;
@@ -490,7 +490,7 @@ static int __maybe_unused rt5514_resume(struct device *dev) }static const struct dev_pm_ops rt5514_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (rt5514_suspend, rt5514_resume) +SYSTEM_SLEEP_PM_OPS (rt5514_suspend, rt5514_resume) };static const struct of_device_id rt5514_of_match[] = {
@@ -502,7 +502,7 @@ MODULE_DEVICE_TABLE(of, rt5514_of_match);static struct spi_driver rt5514_spi_driver = { .driver = { .name ="rt5514" , - .pm = &rt5514_pm_ops, + .pm =pm_ptr (&rt5514_pm_ops), .of_match_table =of_match_ptr (rt5514_of_match), }, .probe = rt5514_spi_probe,
sound/soc/codecs/rt5514.c +3 -3
@@ -1231,7 +1231,7 @@ static int rt5514_parse_dp(struct rt5514_priv *rt5514, struct device *dev)return 0 ; } -static __maybe_unused int rt5514_i2c_resume (struct device *dev) +static int rt5514_i2c_resume (struct device *dev) {struct rt5514_priv *rt5514 =dev_get_drvdata (dev);unsigned int val;
@@ -1313,7 +1313,7 @@ static int rt5514_i2c_probe(struct i2c_client *i2c) }static const struct dev_pm_ops rt5514_i2_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (NULL , rt5514_i2c_resume) +SYSTEM_SLEEP_PM_OPS (NULL , rt5514_i2c_resume) };static struct i2c_driver rt5514_i2c_driver = {
@@ -1321,7 +1321,7 @@ static struct i2c_driver rt5514_i2c_driver = { .name = "rt5514", .acpi_match_table = ACPI_PTR(rt5514_acpi_match), .of_match_table = of_match_ptr(rt5514_of_match), - .pm = &rt5514_i2_pm_ops, + .pm = pm_ptr(&rt5514_i2_pm_ops), }, .probe = rt5514_i2c_probe, .id_table = rt5514_i2c_id,
Signature · 1 line
2.43.0
PATCH v2 35/88 ASoC: rt5645: Convert to SYSTEM_SLEEP_PM_OPS()
In reply to Takashi IwaiUse the newer SYSTEM_SLEEP_PM_OPS() macro instead of SET_SYSTEM_SLEEP_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/rt5645.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/rt5645.c +4 -4
@@ -4314,7 +4314,7 @@ static void rt5645_i2c_shutdown(struct i2c_client *i2c)gpiod_set_value (rt5645->gpiod_cbj_sleeve,0 ); } -static int __maybe_unused rt5645_sys_suspend (struct device *dev) +static int rt5645_sys_suspend (struct device *dev) {struct rt5645_priv *rt5645 =dev_get_drvdata (dev);
@@ -4327,7 +4327,7 @@ static int __maybe_unused rt5645_sys_suspend(struct device *dev)return 0 ; } -static int __maybe_unused rt5645_sys_resume (struct device *dev) +static int rt5645_sys_resume (struct device *dev) {struct rt5645_priv *rt5645 =dev_get_drvdata (dev);
@@ -4342,7 +4342,7 @@ static int __maybe_unused rt5645_sys_resume(struct device *dev) }static const struct dev_pm_ops rt5645_pm = { -SET_SYSTEM_SLEEP_PM_OPS (rt5645_sys_suspend, rt5645_sys_resume) +SYSTEM_SLEEP_PM_OPS (rt5645_sys_suspend, rt5645_sys_resume) };static struct i2c_driver rt5645_i2c_driver = {
@@ -4350,7 +4350,7 @@ static struct i2c_driver rt5645_i2c_driver = { .name = "rt5645", .of_match_table = of_match_ptr(rt5645_of_match), .acpi_match_table = ACPI_PTR(rt5645_acpi_match), - .pm = &rt5645_pm, + .pm = pm_ptr(&rt5645_pm), }, .probe = rt5645_i2c_probe, .remove = rt5645_i2c_remove,
Signature · 1 line
2.43.0
PATCH v2 36/88 ASoC: rt5682-sdw: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/rt5682-sdw.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
sound/soc/codecs/rt5682-sdw.c +6 -6
@@ -709,7 +709,7 @@ static const struct sdw_device_id rt5682_id[] = { };MODULE_DEVICE_TABLE (sdw, rt5682_id); -static int __maybe_unused rt5682_dev_suspend (struct device *dev) +static int rt5682_dev_suspend (struct device *dev) {struct rt5682_priv *rt5682 =dev_get_drvdata (dev);
@@ -725,7 +725,7 @@ static int __maybe_unused rt5682_dev_suspend(struct device *dev)return 0 ; } -static int __maybe_unused rt5682_dev_system_suspend (struct device *dev) +static int rt5682_dev_system_suspend (struct device *dev) {struct rt5682_priv *rt5682 =dev_get_drvdata (dev);struct sdw_slave *slave =dev_to_sdw_dev (dev);
@@ -753,7 +753,7 @@ static int __maybe_unused rt5682_dev_system_suspend(struct device *dev)return rt5682_dev_suspend (dev); } -static int __maybe_unused rt5682_dev_resume (struct device *dev) +static int rt5682_dev_resume (struct device *dev) {struct sdw_slave *slave =dev_to_sdw_dev (dev);struct rt5682_priv *rt5682 =dev_get_drvdata (dev);
@@ -791,14 +791,14 @@ static int __maybe_unused rt5682_dev_resume(struct device *dev) }static const struct dev_pm_ops rt5682_pm = { - SET_SYSTEM_SLEEP_PM_OPS(rt5682_dev_system_suspend, rt5682_dev_resume) -SET_RUNTIME_PM_OPS (rt5682_dev_suspend, rt5682_dev_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(rt5682_dev_system_suspend, rt5682_dev_resume) +RUNTIME_PM_OPS (rt5682_dev_suspend, rt5682_dev_resume,NULL ) };static struct sdw_driver rt5682_sdw_driver = { .driver = { .name ="rt5682" , - .pm = &rt5682_pm, + .pm =pm_ptr (&rt5682_pm), }, .probe = rt5682_sdw_probe, .remove = rt5682_sdw_remove,
Signature · 1 line
2.43.0
PATCH v2 37/88 ASoC: rt700-sdw: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/rt700-sdw.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
sound/soc/codecs/rt700-sdw.c +6 -6
@@ -475,7 +475,7 @@ static const struct sdw_device_id rt700_id[] = { };MODULE_DEVICE_TABLE (sdw, rt700_id); -static int __maybe_unused rt700_dev_suspend (struct device *dev) +static int rt700_dev_suspend (struct device *dev) {struct rt700_priv *rt700 =dev_get_drvdata (dev);
@@ -490,7 +490,7 @@ static int __maybe_unused rt700_dev_suspend(struct device *dev)return 0 ; } -static int __maybe_unused rt700_dev_system_suspend (struct device *dev) +static int rt700_dev_system_suspend (struct device *dev) {struct sdw_slave *slave =dev_to_sdw_dev (dev);struct rt700_priv *rt700 =dev_get_drvdata (dev);
@@ -520,7 +520,7 @@ static int __maybe_unused rt700_dev_system_suspend(struct device *dev)#define RT700_PROBE_TIMEOUT 5000 -static int __maybe_unused rt700_dev_resume (struct device *dev) +static int rt700_dev_resume (struct device *dev) {struct sdw_slave *slave =dev_to_sdw_dev (dev);struct rt700_priv *rt700 =dev_get_drvdata (dev);
@@ -551,14 +551,14 @@ static int __maybe_unused rt700_dev_resume(struct device *dev) }static const struct dev_pm_ops rt700_pm = { - SET_SYSTEM_SLEEP_PM_OPS(rt700_dev_system_suspend, rt700_dev_resume) -SET_RUNTIME_PM_OPS (rt700_dev_suspend, rt700_dev_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(rt700_dev_system_suspend, rt700_dev_resume) +RUNTIME_PM_OPS (rt700_dev_suspend, rt700_dev_resume,NULL ) };static struct sdw_driver rt700_sdw_driver = { .driver = { .name ="rt700" , - .pm = &rt700_pm, + .pm =pm_ptr (&rt700_pm), }, .probe = rt700_sdw_probe, .remove = rt700_sdw_remove,
Signature · 1 line
2.43.0
PATCH v2 38/88 ASoC: rt711: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/rt711-sdca-sdw.c | 12 ++++++------ sound/soc/codecs/rt711-sdw.c | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-)
sound/soc/codecs/rt711-sdca-sdw.c +6 -6
@@ -388,7 +388,7 @@ static const struct sdw_device_id rt711_sdca_id[] = { };MODULE_DEVICE_TABLE (sdw, rt711_sdca_id); -static int __maybe_unused rt711_sdca_dev_suspend (struct device *dev) +static int rt711_sdca_dev_suspend (struct device *dev) {struct rt711_sdca_priv *rt711 =dev_get_drvdata (dev);
@@ -404,7 +404,7 @@ static int __maybe_unused rt711_sdca_dev_suspend(struct device *dev)return 0 ; } -static int __maybe_unused rt711_sdca_dev_system_suspend (struct device *dev) +static int rt711_sdca_dev_system_suspend (struct device *dev) {struct rt711_sdca_priv *rt711_sdca =dev_get_drvdata (dev);struct sdw_slave *slave =dev_to_sdw_dev (dev);
@@ -436,7 +436,7 @@ static int __maybe_unused rt711_sdca_dev_system_suspend(struct device *dev)#define RT711_PROBE_TIMEOUT 5000 -static int __maybe_unused rt711_sdca_dev_resume (struct device *dev) +static int rt711_sdca_dev_resume (struct device *dev) {struct sdw_slave *slave =dev_to_sdw_dev (dev);struct rt711_sdca_priv *rt711 =dev_get_drvdata (dev);
@@ -475,14 +475,14 @@ static int __maybe_unused rt711_sdca_dev_resume(struct device *dev) }static const struct dev_pm_ops rt711_sdca_pm = { - SET_SYSTEM_SLEEP_PM_OPS(rt711_sdca_dev_system_suspend, rt711_sdca_dev_resume) -SET_RUNTIME_PM_OPS (rt711_sdca_dev_suspend, rt711_sdca_dev_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(rt711_sdca_dev_system_suspend, rt711_sdca_dev_resume) +RUNTIME_PM_OPS (rt711_sdca_dev_suspend, rt711_sdca_dev_resume,NULL ) };static struct sdw_driver rt711_sdca_sdw_driver = { .driver = { .name ="rt711-sdca" , - .pm = &rt711_sdca_pm, + .pm =pm_ptr (&rt711_sdca_pm), }, .probe = rt711_sdca_sdw_probe, .remove = rt711_sdca_sdw_remove,
sound/soc/codecs/rt711-sdw.c +6 -6
@@ -482,7 +482,7 @@ static const struct sdw_device_id rt711_id[] = { };MODULE_DEVICE_TABLE (sdw, rt711_id); -static int __maybe_unused rt711_dev_suspend (struct device *dev) +static int rt711_dev_suspend (struct device *dev) {struct rt711_priv *rt711 =dev_get_drvdata (dev);
@@ -498,7 +498,7 @@ static int __maybe_unused rt711_dev_suspend(struct device *dev)return 0 ; } -static int __maybe_unused rt711_dev_system_suspend (struct device *dev) +static int rt711_dev_system_suspend (struct device *dev) {struct rt711_priv *rt711 =dev_get_drvdata (dev);struct sdw_slave *slave =dev_to_sdw_dev (dev);
@@ -528,7 +528,7 @@ static int __maybe_unused rt711_dev_system_suspend(struct device *dev)#define RT711_PROBE_TIMEOUT 5000 -static int __maybe_unused rt711_dev_resume (struct device *dev) +static int rt711_dev_resume (struct device *dev) {struct sdw_slave *slave =dev_to_sdw_dev (dev);struct rt711_priv *rt711 =dev_get_drvdata (dev);
@@ -564,14 +564,14 @@ static int __maybe_unused rt711_dev_resume(struct device *dev) }static const struct dev_pm_ops rt711_pm = { - SET_SYSTEM_SLEEP_PM_OPS(rt711_dev_system_suspend, rt711_dev_resume) -SET_RUNTIME_PM_OPS (rt711_dev_suspend, rt711_dev_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(rt711_dev_system_suspend, rt711_dev_resume) +RUNTIME_PM_OPS (rt711_dev_suspend, rt711_dev_resume,NULL ) };static struct sdw_driver rt711_sdw_driver = { .driver = { .name ="rt711" , - .pm = &rt711_pm, + .pm =pm_ptr (&rt711_pm), }, .probe = rt711_sdw_probe, .remove = rt711_sdw_remove,
Signature · 1 line
2.43.0
PATCH v2 39/88 ASoC: rt712: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/rt712-sdca-dmic.c | 12 ++++++------ sound/soc/codecs/rt712-sdca-sdw.c | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-)
sound/soc/codecs/rt712-sdca-dmic.c +6 -6
@@ -884,7 +884,7 @@ static const struct sdw_device_id rt712_sdca_dmic_id[] = { };MODULE_DEVICE_TABLE (sdw, rt712_sdca_dmic_id); -static int __maybe_unused rt712_sdca_dmic_dev_suspend (struct device *dev) +static int rt712_sdca_dmic_dev_suspend (struct device *dev) {struct rt712_sdca_dmic_priv *rt712 =dev_get_drvdata (dev);
@@ -897,7 +897,7 @@ static int __maybe_unused rt712_sdca_dmic_dev_suspend(struct device *dev)return 0 ; } -static int __maybe_unused rt712_sdca_dmic_dev_system_suspend (struct device *dev) +static int rt712_sdca_dmic_dev_system_suspend (struct device *dev) {struct rt712_sdca_dmic_priv *rt712_sdca =dev_get_drvdata (dev);
@@ -909,7 +909,7 @@ static int __maybe_unused rt712_sdca_dmic_dev_system_suspend(struct device *dev)#define RT712_PROBE_TIMEOUT 5000 -static int __maybe_unused rt712_sdca_dmic_dev_resume (struct device *dev) +static int rt712_sdca_dmic_dev_resume (struct device *dev) {struct sdw_slave *slave =dev_to_sdw_dev (dev);struct rt712_sdca_dmic_priv *rt712 =dev_get_drvdata (dev);
@@ -941,8 +941,8 @@ static int __maybe_unused rt712_sdca_dmic_dev_resume(struct device *dev) }static const struct dev_pm_ops rt712_sdca_dmic_pm = { - SET_SYSTEM_SLEEP_PM_OPS(rt712_sdca_dmic_dev_system_suspend, rt712_sdca_dmic_dev_resume) -SET_RUNTIME_PM_OPS (rt712_sdca_dmic_dev_suspend, rt712_sdca_dmic_dev_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(rt712_sdca_dmic_dev_system_suspend, rt712_sdca_dmic_dev_resume) +RUNTIME_PM_OPS (rt712_sdca_dmic_dev_suspend, rt712_sdca_dmic_dev_resume,NULL ) };
@@ -978,7 +978,7 @@ static int rt712_sdca_dmic_sdw_remove(struct sdw_slave *slave)static struct sdw_driver rt712_sdca_dmic_sdw_driver = { .driver = { .name ="rt712-sdca-dmic" , - .pm = &rt712_sdca_dmic_pm, + .pm =pm_ptr (&rt712_sdca_dmic_pm), }, .probe = rt712_sdca_dmic_sdw_probe, .remove = rt712_sdca_dmic_sdw_remove,
sound/soc/codecs/rt712-sdca-sdw.c +6 -6
@@ -400,7 +400,7 @@ static const struct sdw_device_id rt712_sdca_id[] = { };MODULE_DEVICE_TABLE (sdw, rt712_sdca_id); -static int __maybe_unused rt712_sdca_dev_suspend (struct device *dev) +static int rt712_sdca_dev_suspend (struct device *dev) {struct rt712_sdca_priv *rt712 =dev_get_drvdata (dev);
@@ -416,7 +416,7 @@ static int __maybe_unused rt712_sdca_dev_suspend(struct device *dev)return 0 ; } -static int __maybe_unused rt712_sdca_dev_system_suspend (struct device *dev) +static int rt712_sdca_dev_system_suspend (struct device *dev) {struct rt712_sdca_priv *rt712_sdca =dev_get_drvdata (dev);struct sdw_slave *slave =dev_to_sdw_dev (dev);
@@ -448,7 +448,7 @@ static int __maybe_unused rt712_sdca_dev_system_suspend(struct device *dev)#define RT712_PROBE_TIMEOUT 5000 -static int __maybe_unused rt712_sdca_dev_resume (struct device *dev) +static int rt712_sdca_dev_resume (struct device *dev) {struct sdw_slave *slave =dev_to_sdw_dev (dev);struct rt712_sdca_priv *rt712 =dev_get_drvdata (dev);
@@ -488,14 +488,14 @@ static int __maybe_unused rt712_sdca_dev_resume(struct device *dev) }static const struct dev_pm_ops rt712_sdca_pm = { - SET_SYSTEM_SLEEP_PM_OPS(rt712_sdca_dev_system_suspend, rt712_sdca_dev_resume) -SET_RUNTIME_PM_OPS (rt712_sdca_dev_suspend, rt712_sdca_dev_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(rt712_sdca_dev_system_suspend, rt712_sdca_dev_resume) +RUNTIME_PM_OPS (rt712_sdca_dev_suspend, rt712_sdca_dev_resume,NULL ) };static struct sdw_driver rt712_sdca_sdw_driver = { .driver = { .name ="rt712-sdca" , - .pm = &rt712_sdca_pm, + .pm =pm_ptr (&rt712_sdca_pm), }, .probe = rt712_sdca_sdw_probe, .remove = rt712_sdca_sdw_remove,
Signature · 1 line
2.43.0
PATCH v2 40/88 ASoC: rt715: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/rt715-sdca-sdw.c | 10 +++++----- sound/soc/codecs/rt715-sdw.c | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-)
sound/soc/codecs/rt715-sdca-sdw.c +5 -5
@@ -205,7 +205,7 @@ static const struct sdw_device_id rt715_sdca_id[] = { };MODULE_DEVICE_TABLE (sdw, rt715_sdca_id); -static int __maybe_unused rt715_dev_suspend (struct device *dev) +static int rt715_dev_suspend (struct device *dev) {struct rt715_sdca_priv *rt715 =dev_get_drvdata (dev);
@@ -222,7 +222,7 @@ static int __maybe_unused rt715_dev_suspend(struct device *dev)#define RT715_PROBE_TIMEOUT 5000 -static int __maybe_unused rt715_dev_resume (struct device *dev) +static int rt715_dev_resume (struct device *dev) {struct sdw_slave *slave =dev_to_sdw_dev (dev);struct rt715_sdca_priv *rt715 =dev_get_drvdata (dev);
@@ -263,14 +263,14 @@ static int __maybe_unused rt715_dev_resume(struct device *dev) }static const struct dev_pm_ops rt715_pm = { - SET_SYSTEM_SLEEP_PM_OPS(rt715_dev_suspend, rt715_dev_resume) -SET_RUNTIME_PM_OPS (rt715_dev_suspend, rt715_dev_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(rt715_dev_suspend, rt715_dev_resume) +RUNTIME_PM_OPS (rt715_dev_suspend, rt715_dev_resume,NULL ) };static struct sdw_driver rt715_sdw_driver = { .driver = { .name ="rt715-sdca" , - .pm = &rt715_pm, + .pm =pm_ptr (&rt715_pm), }, .probe = rt715_sdca_sdw_probe, .remove = rt715_sdca_sdw_remove,
sound/soc/codecs/rt715-sdw.c +5 -5
@@ -485,7 +485,7 @@ static const struct sdw_device_id rt715_id[] = { };MODULE_DEVICE_TABLE (sdw, rt715_id); -static int __maybe_unused rt715_dev_suspend (struct device *dev) +static int rt715_dev_suspend (struct device *dev) {struct rt715_priv *rt715 =dev_get_drvdata (dev);
@@ -499,7 +499,7 @@ static int __maybe_unused rt715_dev_suspend(struct device *dev)#define RT715_PROBE_TIMEOUT 5000 -static int __maybe_unused rt715_dev_resume (struct device *dev) +static int rt715_dev_resume (struct device *dev) {struct sdw_slave *slave =dev_to_sdw_dev (dev);struct rt715_priv *rt715 =dev_get_drvdata (dev);
@@ -530,14 +530,14 @@ static int __maybe_unused rt715_dev_resume(struct device *dev) }static const struct dev_pm_ops rt715_pm = { - SET_SYSTEM_SLEEP_PM_OPS(rt715_dev_suspend, rt715_dev_resume) -SET_RUNTIME_PM_OPS (rt715_dev_suspend, rt715_dev_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(rt715_dev_suspend, rt715_dev_resume) +RUNTIME_PM_OPS (rt715_dev_suspend, rt715_dev_resume,NULL ) };static struct sdw_driver rt715_sdw_driver = { .driver = { .name ="rt715" , - .pm = &rt715_pm, + .pm =pm_ptr (&rt715_pm), }, .probe = rt715_sdw_probe, .remove = rt715_sdw_remove,
Signature · 1 line
2.43.0
PATCH v2 41/88 ASoC: rt721: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/rt721-sdca-sdw.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
sound/soc/codecs/rt721-sdca-sdw.c +6 -6
@@ -437,7 +437,7 @@ static const struct sdw_device_id rt721_sdca_id[] = { };MODULE_DEVICE_TABLE (sdw, rt721_sdca_id); -static int __maybe_unused rt721_sdca_dev_suspend (struct device *dev) +static int rt721_sdca_dev_suspend (struct device *dev) {struct rt721_sdca_priv *rt721 =dev_get_drvdata (dev);
@@ -453,7 +453,7 @@ static int __maybe_unused rt721_sdca_dev_suspend(struct device *dev)return 0 ; } -static int __maybe_unused rt721_sdca_dev_system_suspend (struct device *dev) +static int rt721_sdca_dev_system_suspend (struct device *dev) {struct rt721_sdca_priv *rt721_sdca =dev_get_drvdata (dev);struct sdw_slave *slave =dev_to_sdw_dev (dev);
@@ -485,7 +485,7 @@ static int __maybe_unused rt721_sdca_dev_system_suspend(struct device *dev)#define RT721_PROBE_TIMEOUT 5000 -static int __maybe_unused rt721_sdca_dev_resume (struct device *dev) +static int rt721_sdca_dev_resume (struct device *dev) {struct sdw_slave *slave =dev_to_sdw_dev (dev);struct rt721_sdca_priv *rt721 =dev_get_drvdata (dev);
@@ -524,15 +524,15 @@ static int __maybe_unused rt721_sdca_dev_resume(struct device *dev) }static const struct dev_pm_ops rt721_sdca_pm = { - SET_SYSTEM_SLEEP_PM_OPS(rt721_sdca_dev_system_suspend, rt721_sdca_dev_resume) -SET_RUNTIME_PM_OPS (rt721_sdca_dev_suspend, rt721_sdca_dev_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(rt721_sdca_dev_system_suspend, rt721_sdca_dev_resume) +RUNTIME_PM_OPS (rt721_sdca_dev_suspend, rt721_sdca_dev_resume,NULL ) };static struct sdw_driver rt721_sdca_sdw_driver = { .driver = { .name ="rt721-sdca" , .owner =THIS_MODULE , - .pm = &rt721_sdca_pm, + .pm =pm_ptr (&rt721_sdca_pm), }, .probe = rt721_sdca_sdw_probe, .remove = rt721_sdca_sdw_remove,
Signature · 1 line
2.43.0
PATCH v2 42/88 ASoC: rt722: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/rt722-sdca-sdw.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
sound/soc/codecs/rt722-sdca-sdw.c +6 -6
@@ -430,7 +430,7 @@ static const struct sdw_device_id rt722_sdca_id[] = { };MODULE_DEVICE_TABLE (sdw, rt722_sdca_id); -static int __maybe_unused rt722_sdca_dev_suspend (struct device *dev) +static int rt722_sdca_dev_suspend (struct device *dev) {struct rt722_sdca_priv *rt722 =dev_get_drvdata (dev);
@@ -445,7 +445,7 @@ static int __maybe_unused rt722_sdca_dev_suspend(struct device *dev)return 0 ; } -static int __maybe_unused rt722_sdca_dev_system_suspend (struct device *dev) +static int rt722_sdca_dev_system_suspend (struct device *dev) {struct rt722_sdca_priv *rt722_sdca =dev_get_drvdata (dev);struct sdw_slave *slave =dev_to_sdw_dev (dev);
@@ -477,7 +477,7 @@ static int __maybe_unused rt722_sdca_dev_system_suspend(struct device *dev)#define RT722_PROBE_TIMEOUT 5000 -static int __maybe_unused rt722_sdca_dev_resume (struct device *dev) +static int rt722_sdca_dev_resume (struct device *dev) {struct sdw_slave *slave =dev_to_sdw_dev (dev);struct rt722_sdca_priv *rt722 =dev_get_drvdata (dev);
@@ -514,14 +514,14 @@ static int __maybe_unused rt722_sdca_dev_resume(struct device *dev) }static const struct dev_pm_ops rt722_sdca_pm = { - SET_SYSTEM_SLEEP_PM_OPS(rt722_sdca_dev_system_suspend, rt722_sdca_dev_resume) -SET_RUNTIME_PM_OPS (rt722_sdca_dev_suspend, rt722_sdca_dev_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(rt722_sdca_dev_system_suspend, rt722_sdca_dev_resume) +RUNTIME_PM_OPS (rt722_sdca_dev_suspend, rt722_sdca_dev_resume,NULL ) };static struct sdw_driver rt722_sdca_sdw_driver = { .driver = { .name ="rt722-sdca" , - .pm = &rt722_sdca_pm, + .pm =pm_ptr (&rt722_sdca_pm), }, .probe = rt722_sdca_sdw_probe, .remove = rt722_sdca_sdw_remove,
Signature · 1 line
2.43.0
PATCH v2 43/88 ASoC: rt9120: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/rt9120.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/rt9120.c +4 -4
@@ -590,7 +590,7 @@ static void rt9120_remove(struct i2c_client *i2c)pm_runtime_set_suspended (&i2c->dev); } -static int __maybe_unused rt9120_runtime_suspend (struct device *dev) +static int rt9120_runtime_suspend (struct device *dev) {struct rt9120_data *data =dev_get_drvdata (dev);
@@ -603,7 +603,7 @@ static int __maybe_unused rt9120_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused rt9120_runtime_resume (struct device *dev) +static int rt9120_runtime_resume (struct device *dev) {struct rt9120_data *data =dev_get_drvdata (dev);
@@ -618,7 +618,7 @@ static int __maybe_unused rt9120_runtime_resume(struct device *dev) }static const struct dev_pm_ops rt9120_pm_ops = { -SET_RUNTIME_PM_OPS (rt9120_runtime_suspend, rt9120_runtime_resume,NULL ) +RUNTIME_PM_OPS (rt9120_runtime_suspend, rt9120_runtime_resume,NULL ) };static const struct of_device_id __maybe_unused rt9120_device_table[] = {
@@ -631,7 +631,7 @@ static struct i2c_driver rt9120_driver = { .driver = { .name = "rt9120", .of_match_table = rt9120_device_table, - .pm = &rt9120_pm_ops, + .pm = pm_ptr(&rt9120_pm_ops), }, .probe = rt9120_probe, .remove = rt9120_remove,
Signature · 1 line
2.43.0
PATCH v2 44/88 ASoC: rtq9128: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS(), which allows us dropping ugly __maybe_unsed attributes.
Merely a cleanup, there should be no actual code change.
--- sound/soc/codecs/rtq9128.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/rtq9128.c +4 -4
@@ -729,7 +729,7 @@ static int rtq9128_probe(struct i2c_client *i2c)return devm_snd_soc_register_component (dev, &rtq9128_comp_driver, &rtq9128_dai,1 ); } -static int __maybe_unused rtq9128_pm_runtime_suspend (struct device *dev) +static int rtq9128_pm_runtime_suspend (struct device *dev) {struct rtq9128_data *data =dev_get_drvdata (dev);struct regmap *regmap =dev_get_regmap (dev,NULL );
@@ -746,7 +746,7 @@ static int __maybe_unused rtq9128_pm_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused rtq9128_pm_runtime_resume (struct device *dev) +static int rtq9128_pm_runtime_resume (struct device *dev) {struct rtq9128_data *data =dev_get_drvdata (dev);struct regmap *regmap =dev_get_regmap (dev,NULL );
@@ -764,8 +764,8 @@ static int __maybe_unused rtq9128_pm_runtime_resume(struct device *dev)return regcache_sync (regmap); } -static const struct dev_pm_ops __maybe_unused rtq9128_pm_ops = { -SET_RUNTIME_PM_OPS (rtq9128_pm_runtime_suspend, rtq9128_pm_runtime_resume,NULL ) +static const struct dev_pm_ops rtq9128_pm_ops = { +RUNTIME_PM_OPS (rtq9128_pm_runtime_suspend, rtq9128_pm_runtime_resume,NULL ) };static const struct of_device_id rtq9128_device_table[] = {
Signature · 1 line
2.43.0
PATCH v2 45/88 ASoC: tas2552: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping superfluous CONFIG_PM ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/tas2552.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
sound/soc/codecs/tas2552.c +2 -7
@@ -138,7 +138,6 @@ static const struct snd_soc_dapm_route tas2552_audio_map[] = { {"ASI OUT", NULL, "DMIC"} }; -#ifdef CONFIG_PM static void tas2552_sw_shutdown (struct tas2552_data *tas2552,int sw_shutdown) {u8 cfg1_reg =0 ;
@@ -152,7 +151,6 @@ static void tas2552_sw_shutdown(struct tas2552_data *tas2552, int sw_shutdown)snd_soc_component_update_bits (tas2552->component,TAS2552_CFG_1 ,TAS2552_SWS , cfg1_reg); } -#endif static int tas2552_setup_pll (struct snd_soc_component *component,struct snd_pcm_hw_params *params)
@@ -480,7 +478,6 @@ static int tas2552_mute(struct snd_soc_dai *dai, int mute, int direction)return 0 ; } -#ifdef CONFIG_PM static int tas2552_runtime_suspend (struct device *dev) {struct tas2552_data *tas2552 =dev_get_drvdata (dev);
@@ -508,11 +505,9 @@ static int tas2552_runtime_resume(struct device *dev)return 0 ; } -#endif static const struct dev_pm_ops tas2552_pm = { -SET_RUNTIME_PM_OPS (tas2552_runtime_suspend, tas2552_runtime_resume, -NULL ) +RUNTIME_PM_OPS (tas2552_runtime_suspend, tas2552_runtime_resume,NULL ) };static const struct snd_soc_dai_ops tas2552_speaker_dai_ops = {
@@ -768,7 +763,7 @@ static struct i2c_driver tas2552_i2c_driver = { .driver = { .name = "tas2552", .of_match_table = of_match_ptr(tas2552_of_match), - .pm = &tas2552_pm, + .pm = pm_ptr(&tas2552_pm), }, .probe = tas2552_probe, .remove = tas2552_i2c_remove,
Signature · 1 line
2.43.0
PATCH v2 46/88 ASoC: ts3a227e: Convert to SYSTEM_SLEEP_PM_OPS()
In reply to Takashi IwaiUse the newer SYSTEM_SLEEP_PM_OPS() macro instead of SET_SYSTEM_SLEEP_PM_OPS() together with pm_ptr(), which allows us dropping superfluous CONFIG_PM_SLEEP ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/ts3a227e.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
sound/soc/codecs/ts3a227e.c +2 -4
@@ -399,7 +399,6 @@ static int ts3a227e_i2c_probe(struct i2c_client *i2c)return 0 ; } -#ifdef CONFIG_PM_SLEEP static int ts3a227e_suspend (struct device *dev) {struct ts3a227e *ts3a227e =dev_get_drvdata (dev);
@@ -419,10 +418,9 @@ static int ts3a227e_resume(struct device *dev)return 0 ; } -#endif static const struct dev_pm_ops ts3a227e_pm = { -SET_SYSTEM_SLEEP_PM_OPS (ts3a227e_suspend, ts3a227e_resume) +SYSTEM_SLEEP_PM_OPS (ts3a227e_suspend, ts3a227e_resume) };static const struct i2c_device_id ts3a227e_i2c_ids[] = {
@@ -450,7 +448,7 @@ MODULE_DEVICE_TABLE(acpi, ts3a227e_acpi_match);static struct i2c_driver ts3a227e_driver = { .driver = { .name ="ts3a227e" , - .pm = &ts3a227e_pm, + .pm =pm_ptr (&ts3a227e_pm), .of_match_table =of_match_ptr (ts3a227e_of_match), .acpi_match_table =ACPI_PTR (ts3a227e_acpi_match), },
Signature · 1 line
2.43.0
PATCH v2 47/88 ASoC: wcd937x: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/wcd937x-sdw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/wcd937x-sdw.c +4 -4
@@ -1124,7 +1124,7 @@ static const struct sdw_device_id wcd9370_slave_id[] = { };MODULE_DEVICE_TABLE (sdw, wcd9370_slave_id); -static int __maybe_unused wcd937x_sdw_runtime_suspend (struct device *dev) +static int wcd937x_sdw_runtime_suspend (struct device *dev) {struct wcd937x_sdw_priv *wcd =dev_get_drvdata (dev);
@@ -1136,7 +1136,7 @@ static int __maybe_unused wcd937x_sdw_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused wcd937x_sdw_runtime_resume (struct device *dev) +static int wcd937x_sdw_runtime_resume (struct device *dev) {struct wcd937x_sdw_priv *wcd =dev_get_drvdata (dev);
@@ -1149,7 +1149,7 @@ static int __maybe_unused wcd937x_sdw_runtime_resume(struct device *dev) }static const struct dev_pm_ops wcd937x_sdw_pm_ops = { -SET_RUNTIME_PM_OPS (wcd937x_sdw_runtime_suspend, wcd937x_sdw_runtime_resume,NULL ) +RUNTIME_PM_OPS (wcd937x_sdw_runtime_suspend, wcd937x_sdw_runtime_resume,NULL ) };static struct sdw_driver wcd9370_codec_driver = {
@@ -1159,7 +1159,7 @@ static struct sdw_driver wcd9370_codec_driver = { .id_table = wcd9370_slave_id, .driver = { .name = "wcd9370-codec", - .pm = &wcd937x_sdw_pm_ops, + .pm = pm_ptr(&wcd937x_sdw_pm_ops), } };module_sdw_driver (wcd9370_codec_driver);
Signature · 1 line
2.43.0
PATCH v2 48/88 ASoC: wcd938x: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/wcd938x-sdw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/wcd938x-sdw.c +4 -4
@@ -1311,7 +1311,7 @@ static const struct sdw_device_id wcd9380_slave_id[] = { };MODULE_DEVICE_TABLE (sdw, wcd9380_slave_id); -static int __maybe_unused wcd938x_sdw_runtime_suspend (struct device *dev) +static int wcd938x_sdw_runtime_suspend (struct device *dev) {struct wcd938x_sdw_priv *wcd =dev_get_drvdata (dev);
@@ -1323,7 +1323,7 @@ static int __maybe_unused wcd938x_sdw_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused wcd938x_sdw_runtime_resume (struct device *dev) +static int wcd938x_sdw_runtime_resume (struct device *dev) {struct wcd938x_sdw_priv *wcd =dev_get_drvdata (dev);
@@ -1338,7 +1338,7 @@ static int __maybe_unused wcd938x_sdw_runtime_resume(struct device *dev) }static const struct dev_pm_ops wcd938x_sdw_pm_ops = { -SET_RUNTIME_PM_OPS (wcd938x_sdw_runtime_suspend, wcd938x_sdw_runtime_resume,NULL ) +RUNTIME_PM_OPS (wcd938x_sdw_runtime_suspend, wcd938x_sdw_runtime_resume,NULL ) };
@@ -1349,7 +1349,7 @@ static struct sdw_driver wcd9380_codec_driver = { .id_table = wcd9380_slave_id, .driver = { .name = "wcd9380-codec", - .pm = &wcd938x_sdw_pm_ops, + .pm = pm_ptr(&wcd938x_sdw_pm_ops), } };module_sdw_driver (wcd9380_codec_driver);
Signature · 1 line
2.43.0
PATCH v2 49/88 ASoC: wcd939x: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/wcd939x-sdw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/wcd939x-sdw.c +4 -4
@@ -1507,7 +1507,7 @@ static const struct sdw_device_id wcd9390_slave_id[] = { };MODULE_DEVICE_TABLE (sdw, wcd9390_slave_id); -static int __maybe_unused wcd939x_sdw_runtime_suspend (struct device *dev) +static int wcd939x_sdw_runtime_suspend (struct device *dev) {struct wcd939x_sdw_priv *wcd =dev_get_drvdata (dev);
@@ -1519,7 +1519,7 @@ static int __maybe_unused wcd939x_sdw_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused wcd939x_sdw_runtime_resume (struct device *dev) +static int wcd939x_sdw_runtime_resume (struct device *dev) {struct wcd939x_sdw_priv *wcd =dev_get_drvdata (dev);
@@ -1532,7 +1532,7 @@ static int __maybe_unused wcd939x_sdw_runtime_resume(struct device *dev) }static const struct dev_pm_ops wcd939x_sdw_pm_ops = { -SET_RUNTIME_PM_OPS (wcd939x_sdw_runtime_suspend, wcd939x_sdw_runtime_resume,NULL ) +RUNTIME_PM_OPS (wcd939x_sdw_runtime_suspend, wcd939x_sdw_runtime_resume,NULL ) };static struct sdw_driver wcd9390_codec_driver = {
@@ -1542,7 +1542,7 @@ static struct sdw_driver wcd9390_codec_driver = { .id_table = wcd9390_slave_id, .driver = { .name = "wcd9390-codec", - .pm = &wcd939x_sdw_pm_ops, + .pm = pm_ptr(&wcd939x_sdw_pm_ops), } };module_sdw_driver (wcd9390_codec_driver);
Signature · 1 line
2.43.0
PATCH v2 50/88 ASoC: wm2200: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unused attributes and superfluous CONFIG_PM ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/wm2200.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
sound/soc/codecs/wm2200.c +2 -5
@@ -2429,7 +2429,6 @@ static void wm2200_i2c_remove(struct i2c_client *i2c) wm2200->core_supplies); } -#ifdef CONFIG_PM static int wm2200_runtime_suspend (struct device *dev) {struct wm2200_priv *wm2200 =dev_get_drvdata (dev);
@@ -2466,11 +2465,9 @@ static int wm2200_runtime_resume(struct device *dev)return 0 ; } -#endif static const struct dev_pm_ops wm2200_pm = { -SET_RUNTIME_PM_OPS (wm2200_runtime_suspend, wm2200_runtime_resume, -NULL ) +RUNTIME_PM_OPS (wm2200_runtime_suspend, wm2200_runtime_resume,NULL ) };static const struct i2c_device_id wm2200_i2c_id[] = {
@@ -2482,7 +2479,7 @@ MODULE_DEVICE_TABLE(i2c, wm2200_i2c_id);static struct i2c_driver wm2200_i2c_driver = { .driver = { .name ="wm2200" , - .pm = &wm2200_pm, + .pm =pm_ptr (&wm2200_pm), }, .probe = wm2200_i2c_probe, .remove = wm2200_i2c_remove,
Signature · 1 line
2.43.0
PATCH v2 51/88 ASoC: wm5100: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping superfluous CONFIG_PM ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/wm5100.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
sound/soc/codecs/wm5100.c +2 -5
@@ -2625,7 +2625,6 @@ static void wm5100_i2c_remove(struct i2c_client *i2c)gpiod_set_value_cansleep (wm5100->ldo_ena,0 ); } -#ifdef CONFIG_PM static int wm5100_runtime_suspend (struct device *dev) {struct wm5100_priv *wm5100 =dev_get_drvdata (dev);
@@ -2662,11 +2661,9 @@ static int wm5100_runtime_resume(struct device *dev)return 0 ; } -#endif static const struct dev_pm_ops wm5100_pm = { -SET_RUNTIME_PM_OPS (wm5100_runtime_suspend, wm5100_runtime_resume, -NULL ) +RUNTIME_PM_OPS (wm5100_runtime_suspend, wm5100_runtime_resume,NULL ) };static const struct i2c_device_id wm5100_i2c_id[] = {
@@ -2678,7 +2675,7 @@ MODULE_DEVICE_TABLE(i2c, wm5100_i2c_id);static struct i2c_driver wm5100_i2c_driver = { .driver = { .name ="wm5100" , - .pm = &wm5100_pm, + .pm =pm_ptr (&wm5100_pm), }, .probe = wm5100_i2c_probe, .remove = wm5100_i2c_remove,
Signature · 1 line
2.43.0
PATCH v2 52/88 ASoC: wm8804: Convert to EXPORT_GPL_DEV_PM_OPS()
In reply to Takashi IwaiUse the newer EXPORT_GPL_DEV_PM_OPS() macro together with pm_ptr(), which allows us to drop superfluous CONFIG_PM ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/wm8804-i2c.c | 2 +- sound/soc/codecs/wm8804-spi.c | 2 +- sound/soc/codecs/wm8804.c | 7 ++----- 3 files changed, 4 insertions(+), 7 deletions(-)
sound/soc/codecs/wm8804-i2c.c +1 -1
@@ -56,7 +56,7 @@ MODULE_DEVICE_TABLE(acpi, wm8804_acpi_match);static struct i2c_driver wm8804_i2c_driver = { .driver = { .name ="wm8804" , - .pm = &wm8804_pm, + .pm =pm_ptr (&wm8804_pm), .of_match_table =of_match_ptr (wm8804_of_match), .acpi_match_table =ACPI_PTR (wm8804_acpi_match), },
sound/soc/codecs/wm8804-spi.c +1 -1
@@ -38,7 +38,7 @@ MODULE_DEVICE_TABLE(of, wm8804_of_match);static struct spi_driver wm8804_spi_driver = { .driver = { .name ="wm8804" , - .pm = &wm8804_pm, + .pm =pm_ptr (&wm8804_pm), .of_match_table = wm8804_of_match, }, .probe = wm8804_spi_probe,
sound/soc/codecs/wm8804.c +2 -5
@@ -680,7 +680,6 @@ void wm8804_remove(struct device *dev) }EXPORT_SYMBOL_GPL (wm8804_remove); -#if IS_ENABLED (CONFIG_PM )static int wm8804_runtime_resume (struct device *dev) {struct wm8804_priv *wm8804 =dev_get_drvdata (dev);
@@ -713,12 +712,10 @@ static int wm8804_runtime_suspend(struct device *dev)return 0 ; } -#endif -const struct dev_pm_ops wm8804_pm = { -SET_RUNTIME_PM_OPS (wm8804_runtime_suspend, wm8804_runtime_resume,NULL ) +EXPORT_GPL_DEV_PM_OPS (wm8804_pm) = { +RUNTIME_PM_OPS (wm8804_runtime_suspend, wm8804_runtime_resume,NULL ) }; -EXPORT_SYMBOL_GPL (wm8804_pm);MODULE_DESCRIPTION ("ASoC WM8804 driver" );MODULE_AUTHOR ("Dimitris Papastamos <[email protected]>" );
Signature · 1 line
2.43.0
PATCH v2 53/88 ASoC: wm8962: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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 superfluous CONFIG_PM ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/wm8962.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
sound/soc/codecs/wm8962.c +3 -5
@@ -3850,7 +3850,6 @@ static void wm8962_i2c_remove(struct i2c_client *client)pm_runtime_disable (&client->dev); } -#ifdef CONFIG_PM static int wm8962_runtime_resume (struct device *dev) {struct wm8962_priv *wm8962 =dev_get_drvdata (dev);
@@ -3930,11 +3929,10 @@ static int wm8962_runtime_suspend(struct device *dev)return 0 ; } -#endif static const struct dev_pm_ops wm8962_pm = { - SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume) -SET_RUNTIME_PM_OPS (wm8962_runtime_suspend, wm8962_runtime_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume) +RUNTIME_PM_OPS (wm8962_runtime_suspend, wm8962_runtime_resume,NULL ) };static const struct i2c_device_id wm8962_i2c_id[] = {
@@ -3953,7 +3951,7 @@ static struct i2c_driver wm8962_i2c_driver = { .driver = { .name = "wm8962", .of_match_table = wm8962_of_match, - .pm = &wm8962_pm, + .pm = pm_ptr(&wm8962_pm), }, .probe = wm8962_i2c_probe, .remove = wm8962_i2c_remove,
Signature · 1 line
2.43.0
PATCH v2 54/88 ASoC: wm8994: Convert to SYSTEM_SLEEP_PM_OPS()
In reply to Takashi IwaiUse the newer SYSTEM_SLEEP_PM_OPS() macro instead of SET_SYSTEM_SLEEP_PM_OPS() together with pm_ptr(), which allows us superfluous CONFIG_PM_SLEEP ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/wm8994.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
sound/soc/codecs/wm8994.c +2 -4
@@ -4662,7 +4662,6 @@ static void wm8994_remove(struct platform_device *pdev)pm_runtime_disable (&pdev->dev); } -#ifdef CONFIG_PM_SLEEP static int wm8994_suspend (struct device *dev) {struct wm8994_priv *wm8994 =dev_get_drvdata (dev);
@@ -4687,16 +4686,15 @@ static int wm8994_resume(struct device *dev)return 0 ; } -#endif static const struct dev_pm_ops wm8994_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (wm8994_suspend, wm8994_resume) +SYSTEM_SLEEP_PM_OPS (wm8994_suspend, wm8994_resume) };static struct platform_driver wm8994_codec_driver = { .driver = { .name ="wm8994-codec" , - .pm = &wm8994_pm_ops, + .pm =pm_ptr (&wm8994_pm_ops), }, .probe = wm8994_probe, .remove = wm8994_remove,
Signature · 1 line
2.43.0
PATCH v2 55/88 ASoC: wsa881x: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/wsa881x.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/wsa881x.c +4 -4
@@ -1169,7 +1169,7 @@ static int wsa881x_probe(struct sdw_slave *pdev, ARRAY_SIZE(wsa881x_dais)); } -static int __maybe_unused wsa881x_runtime_suspend (struct device *dev) +static int wsa881x_runtime_suspend (struct device *dev) {struct regmap *regmap =dev_get_regmap (dev,NULL );struct wsa881x_priv *wsa881x =dev_get_drvdata (dev);
@@ -1182,7 +1182,7 @@ static int __maybe_unused wsa881x_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused wsa881x_runtime_resume (struct device *dev) +static int wsa881x_runtime_resume (struct device *dev) {struct sdw_slave *slave =dev_to_sdw_dev (dev);struct regmap *regmap =dev_get_regmap (dev,NULL );
@@ -1206,7 +1206,7 @@ static int __maybe_unused wsa881x_runtime_resume(struct device *dev) }static const struct dev_pm_ops wsa881x_pm_ops = { -SET_RUNTIME_PM_OPS (wsa881x_runtime_suspend, wsa881x_runtime_resume,NULL ) +RUNTIME_PM_OPS (wsa881x_runtime_suspend, wsa881x_runtime_resume,NULL ) };static const struct sdw_device_id wsa881x_slave_id[] = {
@@ -1222,7 +1222,7 @@ static struct sdw_driver wsa881x_codec_driver = { .id_table = wsa881x_slave_id, .driver = { .name = "wsa881x-codec", - .pm = &wsa881x_pm_ops, + .pm = pm_ptr(&wsa881x_pm_ops), } };module_sdw_driver (wsa881x_codec_driver);
Signature · 1 line
2.43.0
PATCH v2 56/88 ASoC: wsa883x: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/wsa883x.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/wsa883x.c +4 -4
@@ -1636,7 +1636,7 @@ static int wsa883x_probe(struct sdw_slave *pdev, } -static int __maybe_unused wsa883x_runtime_suspend (struct device *dev) +static int wsa883x_runtime_suspend (struct device *dev) {struct regmap *regmap =dev_get_regmap (dev,NULL );
@@ -1646,7 +1646,7 @@ static int __maybe_unused wsa883x_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused wsa883x_runtime_resume (struct device *dev) +static int wsa883x_runtime_resume (struct device *dev) {struct regmap *regmap =dev_get_regmap (dev,NULL );
@@ -1657,7 +1657,7 @@ static int __maybe_unused wsa883x_runtime_resume(struct device *dev) }static const struct dev_pm_ops wsa883x_pm_ops = { -SET_RUNTIME_PM_OPS (wsa883x_runtime_suspend, wsa883x_runtime_resume,NULL ) +RUNTIME_PM_OPS (wsa883x_runtime_suspend, wsa883x_runtime_resume,NULL ) };static const struct sdw_device_id wsa883x_swr_id[] = {
@@ -1670,7 +1670,7 @@ MODULE_DEVICE_TABLE(sdw, wsa883x_swr_id);static struct sdw_driver wsa883x_codec_driver = { .driver = { .name ="wsa883x-codec" , - .pm = &wsa883x_pm_ops, + .pm =pm_ptr (&wsa883x_pm_ops), .suppress_bind_attrs = true, }, .probe = wsa883x_probe,
Signature · 1 line
2.43.0
PATCH v2 57/88 ASoC: wsa884x: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/wsa884x.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/wsa884x.c +4 -4
@@ -2136,7 +2136,7 @@ static int wsa884x_probe(struct sdw_slave *pdev, ARRAY_SIZE(wsa884x_dais)); } -static int __maybe_unused wsa884x_runtime_suspend (struct device *dev) +static int wsa884x_runtime_suspend (struct device *dev) {struct regmap *regmap =dev_get_regmap (dev,NULL );
@@ -2146,7 +2146,7 @@ static int __maybe_unused wsa884x_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused wsa884x_runtime_resume (struct device *dev) +static int wsa884x_runtime_resume (struct device *dev) {struct regmap *regmap =dev_get_regmap (dev,NULL );
@@ -2157,7 +2157,7 @@ static int __maybe_unused wsa884x_runtime_resume(struct device *dev) }static const struct dev_pm_ops wsa884x_pm_ops = { -SET_RUNTIME_PM_OPS (wsa884x_runtime_suspend, wsa884x_runtime_resume,NULL ) +RUNTIME_PM_OPS (wsa884x_runtime_suspend, wsa884x_runtime_resume,NULL ) };static const struct sdw_device_id wsa884x_swr_id[] = {
@@ -2169,7 +2169,7 @@ MODULE_DEVICE_TABLE(sdw, wsa884x_swr_id);static struct sdw_driver wsa884x_codec_driver = { .driver = { .name ="wsa884x-codec" , - .pm = &wsa884x_pm_ops, + .pm =pm_ptr (&wsa884x_pm_ops), }, .probe = wsa884x_probe, .ops = &wsa884x_slave_ops,
Signature · 1 line
2.43.0
PATCH v2 58/88 ASoC: dwc: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping superfluous CONFIG_PM ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/dwc/dwc-i2s.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/dwc/dwc-i2s.c +3 -3
@@ -478,7 +478,6 @@ static const struct snd_soc_dai_ops dw_i2s_dai_ops = { .set_tdm_slot = dw_i2s_set_tdm_slot, }; -#ifdef CONFIG_PM static int dw_i2s_runtime_suspend (struct device *dev) {struct dw_i2s_dev *dw_dev =dev_get_drvdata (dev);
@@ -501,6 +500,7 @@ static int dw_i2s_runtime_resume(struct device *dev)return 0 ; } +#ifdef CONFIG_PM static int dw_i2s_suspend (struct snd_soc_component *component) {struct dw_i2s_dev *dev =snd_soc_component_get_drvdata (component);
@@ -1084,7 +1084,7 @@ MODULE_DEVICE_TABLE(of, dw_i2s_of_match);#endif static const struct dev_pm_ops dwc_pm_ops = { -SET_RUNTIME_PM_OPS (dw_i2s_runtime_suspend, dw_i2s_runtime_resume,NULL ) +RUNTIME_PM_OPS (dw_i2s_runtime_suspend, dw_i2s_runtime_resume,NULL ) };static struct platform_driver dw_i2s_driver = {
@@ -1093,7 +1093,7 @@ static struct platform_driver dw_i2s_driver = { .driver = { .name = "designware-i2s", .of_match_table = of_match_ptr(dw_i2s_of_match), - .pm = &dwc_pm_ops, + .pm = pm_ptr(&dwc_pm_ops), }, };
Signature · 1 line
2.43.0
PATCH v2 59/88 ASoC: fsl: Convert to RUNTIME_PM_OPS() and co
In reply to Takashi IwaiUse 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()
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/fsl/fsl_aud2htx.c | 3 +-- sound/soc/fsl/fsl_esai.c | 9 +++------ sound/soc/fsl/fsl_micfil.c | 9 +++------ sound/soc/fsl/fsl_sai.c | 8 +++----- sound/soc/fsl/fsl_xcvr.c | 3 +-- 5 files changed, 11 insertions(+), 21 deletions(-)
sound/soc/fsl/fsl_aud2htx.c +1 -2
@@ -290,8 +290,7 @@ static int fsl_aud2htx_runtime_resume(struct device *dev)static const struct dev_pm_ops fsl_aud2htx_pm_ops = { RUNTIME_PM_OPS(fsl_aud2htx_runtime_suspend, fsl_aud2htx_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct platform_driver fsl_aud2htx_driver = {
sound/soc/fsl/fsl_esai.c +3 -6
@@ -1189,11 +1189,8 @@ static int fsl_esai_runtime_suspend(struct device *dev) }static const struct dev_pm_ops fsl_esai_pm_ops = { - SET_RUNTIME_PM_OPS(fsl_esai_runtime_suspend, - fsl_esai_runtime_resume, - NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(fsl_esai_runtime_suspend, fsl_esai_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct platform_driver fsl_esai_driver = {
@@ -1201,7 +1198,7 @@ static struct platform_driver fsl_esai_driver = { .remove = fsl_esai_remove, .driver = { .name = "fsl-esai-dai", - .pm = &fsl_esai_pm_ops, + .pm = pm_ptr(&fsl_esai_pm_ops), .of_match_table = fsl_esai_dt_ids, }, };
sound/soc/fsl/fsl_micfil.c +3 -6
@@ -1512,11 +1512,8 @@ static int fsl_micfil_runtime_resume(struct device *dev) }static const struct dev_pm_ops fsl_micfil_pm_ops = { - SET_RUNTIME_PM_OPS(fsl_micfil_runtime_suspend, - fsl_micfil_runtime_resume, - NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(fsl_micfil_runtime_suspend, fsl_micfil_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct platform_driver fsl_micfil_driver = {
@@ -1524,7 +1521,7 @@ static struct platform_driver fsl_micfil_driver = { .remove = fsl_micfil_remove, .driver = { .name = "fsl-micfil-dai", - .pm = &fsl_micfil_pm_ops, + .pm = pm_ptr(&fsl_micfil_pm_ops), .of_match_table = fsl_micfil_dt_ids, }, };
sound/soc/fsl/fsl_sai.c +3 -5
@@ -1817,10 +1817,8 @@ static int fsl_sai_runtime_resume(struct device *dev) }static const struct dev_pm_ops fsl_sai_pm_ops = { - SET_RUNTIME_PM_OPS(fsl_sai_runtime_suspend, - fsl_sai_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(fsl_sai_runtime_suspend, fsl_sai_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct platform_driver fsl_sai_driver = {
@@ -1828,7 +1826,7 @@ static struct platform_driver fsl_sai_driver = { .remove = fsl_sai_remove, .driver = { .name = "fsl-sai", - .pm = &fsl_sai_pm_ops, + .pm = pm_ptr(&fsl_sai_pm_ops), .of_match_table = fsl_sai_ids, }, };
sound/soc/fsl/fsl_xcvr.c +1 -2
@@ -1821,8 +1821,7 @@ static int fsl_xcvr_runtime_resume(struct device *dev)static const struct dev_pm_ops fsl_xcvr_pm_ops = { RUNTIME_PM_OPS(fsl_xcvr_runtime_suspend, fsl_xcvr_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct platform_driver fsl_xcvr_driver = {
Signature · 1 line
2.43.0
PATCH v2 60/88 ASoC: img: Convert to RUNTIME_PM_OPS() and co
In reply to Takashi IwaiUse 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 superfluous CONFIG_PM_SLEEP ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/img/img-i2s-in.c | 9 +++------ sound/soc/img/img-i2s-out.c | 9 +++------ sound/soc/img/img-parallel-out.c | 5 ++--- sound/soc/img/img-spdif-in.c | 9 +++------ sound/soc/img/img-spdif-out.c | 10 ++++------ sound/soc/img/pistachio-internal-dac.c | 8 +++----- 6 files changed, 18 insertions(+), 32 deletions(-)
sound/soc/img/img-i2s-in.c +3 -6
@@ -539,7 +539,6 @@ static void img_i2s_in_dev_remove(struct platform_device *pdev)img_i2s_in_runtime_suspend (&pdev->dev); } -#ifdef CONFIG_PM_SLEEP static int img_i2s_in_suspend (struct device *dev) {struct img_i2s_in *i2s =dev_get_drvdata (dev);
@@ -586,7 +585,6 @@ static int img_i2s_in_resume(struct device *dev)return 0 ; } -#endif static const struct of_device_id img_i2s_in_of_match[] = { { .compatible ="img,i2s-in" },
@@ -595,16 +593,15 @@ static const struct of_device_id img_i2s_in_of_match[] = {MODULE_DEVICE_TABLE (of, img_i2s_in_of_match);static const struct dev_pm_ops img_i2s_in_pm_ops = { - SET_RUNTIME_PM_OPS(img_i2s_in_runtime_suspend, - img_i2s_in_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (img_i2s_in_suspend, img_i2s_in_resume) + RUNTIME_PM_OPS(img_i2s_in_runtime_suspend, img_i2s_in_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (img_i2s_in_suspend, img_i2s_in_resume) };static struct platform_driver img_i2s_in_driver = { .driver = { .name ="img-i2s-in" , .of_match_table = img_i2s_in_of_match, - .pm = &img_i2s_in_pm_ops + .pm =pm_ptr (&img_i2s_in_pm_ops) }, .probe = img_i2s_in_probe, .remove = img_i2s_in_dev_remove
sound/soc/img/img-i2s-out.c +3 -6
@@ -539,7 +539,6 @@ static void img_i2s_out_dev_remove(struct platform_device *pdev)img_i2s_out_runtime_suspend (&pdev->dev); } -#ifdef CONFIG_PM_SLEEP static int img_i2s_out_suspend (struct device *dev) {struct img_i2s_out *i2s =dev_get_drvdata (dev);
@@ -586,7 +585,6 @@ static int img_i2s_out_resume(struct device *dev)return 0 ; } -#endif static const struct of_device_id img_i2s_out_of_match[] = { { .compatible ="img,i2s-out" },
@@ -595,16 +593,15 @@ static const struct of_device_id img_i2s_out_of_match[] = {MODULE_DEVICE_TABLE (of, img_i2s_out_of_match);static const struct dev_pm_ops img_i2s_out_pm_ops = { - SET_RUNTIME_PM_OPS(img_i2s_out_runtime_suspend, - img_i2s_out_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (img_i2s_out_suspend, img_i2s_out_resume) + RUNTIME_PM_OPS(img_i2s_out_runtime_suspend, img_i2s_out_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (img_i2s_out_suspend, img_i2s_out_resume) };static struct platform_driver img_i2s_out_driver = { .driver = { .name ="img-i2s-out" , .of_match_table = img_i2s_out_of_match, - .pm = &img_i2s_out_pm_ops + .pm =pm_ptr (&img_i2s_out_pm_ops) }, .probe = img_i2s_out_probe, .remove = img_i2s_out_dev_remove
sound/soc/img/img-parallel-out.c +2 -3
@@ -300,15 +300,14 @@ static const struct of_device_id img_prl_out_of_match[] = {MODULE_DEVICE_TABLE (of, img_prl_out_of_match);static const struct dev_pm_ops img_prl_out_pm_ops = { -SET_RUNTIME_PM_OPS (img_prl_out_suspend, - img_prl_out_resume,NULL ) +RUNTIME_PM_OPS (img_prl_out_suspend, img_prl_out_resume,NULL ) };static struct platform_driver img_prl_out_driver = { .driver = { .name ="img-parallel-out" , .of_match_table = img_prl_out_of_match, - .pm = &img_prl_out_pm_ops + .pm =pm_ptr (&img_prl_out_pm_ops) }, .probe = img_prl_out_probe, .remove = img_prl_out_dev_remove
sound/soc/img/img-spdif-in.c +3 -6
@@ -817,7 +817,6 @@ static void img_spdif_in_dev_remove(struct platform_device *pdev)img_spdif_in_runtime_suspend (&pdev->dev); } -#ifdef CONFIG_PM_SLEEP static int img_spdif_in_suspend (struct device *dev) {struct img_spdif_in *spdif =dev_get_drvdata (dev);
@@ -857,7 +856,6 @@ static int img_spdif_in_resume(struct device *dev)return 0 ; } -#endif static const struct of_device_id img_spdif_in_of_match[] = { { .compatible ="img,spdif-in" },
@@ -866,16 +864,15 @@ static const struct of_device_id img_spdif_in_of_match[] = {MODULE_DEVICE_TABLE (of, img_spdif_in_of_match);static const struct dev_pm_ops img_spdif_in_pm_ops = { - SET_RUNTIME_PM_OPS(img_spdif_in_runtime_suspend, - img_spdif_in_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (img_spdif_in_suspend, img_spdif_in_resume) + RUNTIME_PM_OPS(img_spdif_in_runtime_suspend, img_spdif_in_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (img_spdif_in_suspend, img_spdif_in_resume) };static struct platform_driver img_spdif_in_driver = { .driver = { .name ="img-spdif-in" , .of_match_table = img_spdif_in_of_match, - .pm = &img_spdif_in_pm_ops + .pm =pm_ptr (&img_spdif_in_pm_ops) }, .probe = img_spdif_in_probe, .remove = img_spdif_in_dev_remove
sound/soc/img/img-spdif-out.c +4 -6
@@ -409,7 +409,6 @@ static void img_spdif_out_dev_remove(struct platform_device *pdev)img_spdif_out_runtime_suspend (&pdev->dev); } -#ifdef CONFIG_PM_SLEEP static int img_spdif_out_suspend (struct device *dev) {struct img_spdif_out *spdif =dev_get_drvdata (dev);
@@ -448,7 +447,7 @@ static int img_spdif_out_resume(struct device *dev)return 0 ; } -#endif +static const struct of_device_id img_spdif_out_of_match[] = { { .compatible ="img,spdif-out" }, {}
@@ -456,16 +455,15 @@ static const struct of_device_id img_spdif_out_of_match[] = {MODULE_DEVICE_TABLE (of, img_spdif_out_of_match);static const struct dev_pm_ops img_spdif_out_pm_ops = { - SET_RUNTIME_PM_OPS(img_spdif_out_runtime_suspend, - img_spdif_out_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (img_spdif_out_suspend, img_spdif_out_resume) + RUNTIME_PM_OPS(img_spdif_out_runtime_suspend, img_spdif_out_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (img_spdif_out_suspend, img_spdif_out_resume) };static struct platform_driver img_spdif_out_driver = { .driver = { .name ="img-spdif-out" , .of_match_table = img_spdif_out_of_match, - .pm = &img_spdif_out_pm_ops + .pm =pm_ptr (&img_spdif_out_pm_ops) }, .probe = img_spdif_out_probe, .remove = img_spdif_out_dev_remove
sound/soc/img/pistachio-internal-dac.c +3 -5
@@ -224,7 +224,6 @@ static void pistachio_internal_dac_remove(struct platform_device *pdev)regulator_disable (dac->supply); } -#ifdef CONFIG_PM static int pistachio_internal_dac_rt_resume (struct device *dev) {struct pistachio_internal_dac *dac =dev_get_drvdata (dev);
@@ -251,11 +250,10 @@ static int pistachio_internal_dac_rt_suspend(struct device *dev)return 0 ; } -#endif static const struct dev_pm_ops pistachio_internal_dac_pm_ops = { -SET_RUNTIME_PM_OPS (pistachio_internal_dac_rt_suspend, - pistachio_internal_dac_rt_resume,NULL ) +RUNTIME_PM_OPS (pistachio_internal_dac_rt_suspend, + pistachio_internal_dac_rt_resume,NULL ) };static const struct of_device_id pistachio_internal_dac_of_match[] = {
@@ -268,7 +266,7 @@ static struct platform_driver pistachio_internal_dac_plat_driver = { .driver = { .name = "img-pistachio-internal-dac", .of_match_table = pistachio_internal_dac_of_match, - .pm = &pistachio_internal_dac_pm_ops + .pm =pm_ptr (&pistachio_internal_dac_pm_ops) }, .probe = pistachio_internal_dac_probe, .remove = pistachio_internal_dac_remove
Signature · 1 line
2.43.0
PATCH v2 61/88 ASoC: intel: avs: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(), which allows us dropping ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/intel/avs/core.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)
sound/soc/intel/avs/core.c +12 -12
@@ -612,7 +612,7 @@ static int avs_suspend_standby(struct avs_dev *adev)return 0 ; } -static int __maybe_unused avs_suspend_common (struct avs_dev *adev,bool low_power) +static int avs_suspend_common (struct avs_dev *adev,bool low_power) {struct hdac_bus *bus = &adev->base.core;int ret;
@@ -673,7 +673,7 @@ static int avs_resume_standby(struct avs_dev *adev)return 0 ; } -static int __maybe_unused avs_resume_common (struct avs_dev *adev,bool low_power,bool purge) +static int avs_resume_common (struct avs_dev *adev,bool low_power,bool purge) {struct hdac_bus *bus = &adev->base.core;int ret;
@@ -696,41 +696,41 @@ static int __maybe_unused avs_resume_common(struct avs_dev *adev, bool low_powerreturn 0 ; } -static int __maybe_unused avs_suspend (struct device *dev) +static int avs_suspend (struct device *dev) {return avs_suspend_common (to_avs_dev (dev), true); } -static int __maybe_unused avs_resume (struct device *dev) +static int avs_resume (struct device *dev) {return avs_resume_common (to_avs_dev (dev), true, true); } -static int __maybe_unused avs_runtime_suspend (struct device *dev) +static int avs_runtime_suspend (struct device *dev) {return avs_suspend_common (to_avs_dev (dev), true); } -static int __maybe_unused avs_runtime_resume (struct device *dev) +static int avs_runtime_resume (struct device *dev) {return avs_resume_common (to_avs_dev (dev), true, false); } -static int __maybe_unused avs_freeze (struct device *dev) +static int avs_freeze (struct device *dev) {return avs_suspend_common (to_avs_dev (dev), false); } -static int __maybe_unused avs_thaw (struct device *dev) +static int avs_thaw (struct device *dev) {return avs_resume_common (to_avs_dev (dev), false, true); } -static int __maybe_unused avs_poweroff (struct device *dev) +static int avs_poweroff (struct device *dev) {return avs_suspend_common (to_avs_dev (dev), false); } -static int __maybe_unused avs_restore (struct device *dev) +static int avs_restore (struct device *dev) {return avs_resume_common (to_avs_dev (dev), false, true); }
@@ -742,7 +742,7 @@ static const struct dev_pm_ops avs_dev_pm = { .thaw = avs_thaw, .poweroff = avs_poweroff, .restore = avs_restore, - SET_RUNTIME_PM_OPS(avs_runtime_suspend, avs_runtime_resume, NULL) + RUNTIME_PM_OPS(avs_runtime_suspend, avs_runtime_resume, NULL) };static const struct avs_sram_spec skl_sram_spec = {
@@ -893,7 +893,7 @@ static struct pci_driver avs_pci_driver = { .shutdown = avs_pci_shutdown, .dev_groups = avs_attr_groups, .driver = { - .pm = &avs_dev_pm, + .pm = pm_ptr(&avs_dev_pm), }, };module_pci_driver (avs_pci_driver);
Signature · 1 line
2.43.0
Re: [PATCH v2 61/88] ASoC: intel: avs: Convert to RUNTIME_PM_OPS()
Quoted 8 lines · Takashi Iwai
Use the newer
RUNTIME_PM_OPS()macro instead ofSET_RUNTIME_PM_OPS()together withpm_ptr(), which allows us dropping ugly__maybe_unusedattributes.This optimizes slightly when
CONFIG_PMis disabled, too.Cc Cezary Rojewski <[email protected]>Signed-off-by Takashi Iwai <[email protected]>
Thank you for keeping me in loop. The patch looks good.
Quoted 94 lines
--- sound/soc/intel/avs/core.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)sound/soc/intel/avs/core.c +12
-12@@ -612,7 +612,7 @@ static int avs_suspend_standby(struct avs_dev *adev)return 0 ; } -static int __maybe_unused avs_suspend_common (struct avs_dev *adev,bool low_power) +static int avs_suspend_common (struct avs_dev *adev,bool low_power) {struct hdac_bus *bus = &adev->base.core;int ret;@@ -673,7 +673,7 @@ static int avs_resume_standby(struct avs_dev *adev)return 0 ; } -static int __maybe_unused avs_resume_common (struct avs_dev *adev,bool low_power,bool purge) +static int avs_resume_common (struct avs_dev *adev,bool low_power,bool purge) {struct hdac_bus *bus = &adev->base.core;int ret;@@ -696,41 +696,41 @@ static int __maybe_unused avs_resume_common(struct avs_dev *adev, bool low_powerreturn 0 ; } -static int __maybe_unused avs_suspend (struct device *dev) +static int avs_suspend (struct device *dev) {return avs_suspend_common (to_avs_dev (dev), true); } -static int __maybe_unused avs_resume (struct device *dev) +static int avs_resume (struct device *dev) {return avs_resume_common (to_avs_dev (dev), true, true); } -static int __maybe_unused avs_runtime_suspend (struct device *dev) +static int avs_runtime_suspend (struct device *dev) {return avs_suspend_common (to_avs_dev (dev), true); } -static int __maybe_unused avs_runtime_resume (struct device *dev) +static int avs_runtime_resume (struct device *dev) {return avs_resume_common (to_avs_dev (dev), true, false); } -static int __maybe_unused avs_freeze (struct device *dev) +static int avs_freeze (struct device *dev) {return avs_suspend_common (to_avs_dev (dev), false); } -static int __maybe_unused avs_thaw (struct device *dev) +static int avs_thaw (struct device *dev) {return avs_resume_common (to_avs_dev (dev), false, true); } -static int __maybe_unused avs_poweroff (struct device *dev) +static int avs_poweroff (struct device *dev) {return avs_suspend_common (to_avs_dev (dev), false); } -static int __maybe_unused avs_restore (struct device *dev) +static int avs_restore (struct device *dev) {return avs_resume_common (to_avs_dev (dev), false, true); }@@ -742,7 +742,7 @@ static const struct dev_pm_ops avs_dev_pm = { .thaw = avs_thaw, .poweroff = avs_poweroff, .restore = avs_restore, - SET_RUNTIME_PM_OPS(avs_runtime_suspend, avs_runtime_resume, NULL) + RUNTIME_PM_OPS(avs_runtime_suspend, avs_runtime_resume, NULL) };static const struct avs_sram_spec skl_sram_spec = {@@ -893,7 +893,7 @@ static struct pci_driver avs_pci_driver = { .shutdown = avs_pci_shutdown, .dev_groups = avs_attr_groups, .driver = { - .pm = &avs_dev_pm, + .pm = pm_ptr(&avs_dev_pm), }, };module_pci_driver (avs_pci_driver);
PATCH v2 62/88 ASoC: intel: catpt: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/intel/catpt/device.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
sound/soc/intel/catpt/device.c +7 -7
@@ -28,7 +28,7 @@#define CREATE_TRACE_POINTS #include "trace.h" -static int __maybe_unused catpt_suspend (struct device *dev) +static int catpt_suspend (struct device *dev) {struct catpt_dev *cdev =dev_get_drvdata (dev);struct dma_chan *chan;
@@ -72,7 +72,7 @@ static int __maybe_unused catpt_suspend(struct device *dev)return catpt_dsp_power_down (cdev); } -static int __maybe_unused catpt_resume (struct device *dev) +static int catpt_resume (struct device *dev) {struct catpt_dev *cdev =dev_get_drvdata (dev);int ret, i;
@@ -106,7 +106,7 @@ static int __maybe_unused catpt_resume(struct device *dev)return 0 ; } -static int __maybe_unused catpt_runtime_suspend (struct device *dev) +static int catpt_runtime_suspend (struct device *dev) {if (!try_module_get (dev->driver->owner)) {dev_info (dev,"module unloading, skipping suspend\n" );
@@ -117,14 +117,14 @@ static int __maybe_unused catpt_runtime_suspend(struct device *dev)return catpt_suspend (dev); } -static int __maybe_unused catpt_runtime_resume (struct device *dev) +static int catpt_runtime_resume (struct device *dev) {return catpt_resume (dev); }static const struct dev_pm_ops catpt_dev_pm = { - SET_SYSTEM_SLEEP_PM_OPS(catpt_suspend, catpt_resume) -SET_RUNTIME_PM_OPS (catpt_runtime_suspend, catpt_runtime_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(catpt_suspend, catpt_resume) +RUNTIME_PM_OPS (catpt_runtime_suspend, catpt_runtime_resume,NULL ) };/* machine board owned by CATPT is removed with this hook */
@@ -378,7 +378,7 @@ static struct platform_driver catpt_acpi_driver = { .driver = { .name = "intel_catpt", .acpi_match_table = catpt_ids, - .pm = &catpt_dev_pm, + .pm = pm_ptr(&catpt_dev_pm), .dev_groups = catpt_attr_groups, }, };
Signature · 1 line
2.43.0
Re: [PATCH v2 62/88] ASoC: intel: catpt: Convert to RUNTIME_PM_OPS() & co
Quoted 4 lines · Takashi Iwai
Use the newer
RUNTIME_PM_OPS()andSYSTEM_SLEEP_PM_OPS()macros instead ofSET_RUNTIME_PM_OPS()andSET_SYSTEM_SLEEP_PM_OPS()together withpm_ptr(), which allows us dropping ugly__maybe_unusedattributes.
Off-topic comment:
While __maybe_unused may not be the prettiest, it is still better alternative than #if/ifdef spam all over the code if you ask me.
Quoted 4 lines
This optimizes slightly when
CONFIG_PMis disabled, too.Cc Cezary Rojewski <[email protected]>Signed-off-by Takashi Iwai <[email protected]>
Thank you for keeping me in loop. The patch looks good.
Quoted 62 lines
--- sound/soc/intel/catpt/device.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)sound/soc/intel/catpt/device.c +7
-7@@ -28,7 +28,7 @@#define CREATE_TRACE_POINTS #include "trace.h" -static int __maybe_unused catpt_suspend (struct device *dev) +static int catpt_suspend (struct device *dev) {struct catpt_dev *cdev =dev_get_drvdata (dev);struct dma_chan *chan;@@ -72,7 +72,7 @@ static int __maybe_unused catpt_suspend(struct device *dev)return catpt_dsp_power_down (cdev); } -static int __maybe_unused catpt_resume (struct device *dev) +static int catpt_resume (struct device *dev) {struct catpt_dev *cdev =dev_get_drvdata (dev);int ret, i;@@ -106,7 +106,7 @@ static int __maybe_unused catpt_resume(struct device *dev)return 0 ; } -static int __maybe_unused catpt_runtime_suspend (struct device *dev) +static int catpt_runtime_suspend (struct device *dev) {if (!try_module_get (dev->driver->owner)) {dev_info (dev,"module unloading, skipping suspend\n" );@@ -117,14 +117,14 @@ static int __maybe_unused catpt_runtime_suspend(struct device *dev)return catpt_suspend (dev); } -static int __maybe_unused catpt_runtime_resume (struct device *dev) +static int catpt_runtime_resume (struct device *dev) {return catpt_resume (dev); }static const struct dev_pm_ops catpt_dev_pm = { - SET_SYSTEM_SLEEP_PM_OPS(catpt_suspend, catpt_resume) -SET_RUNTIME_PM_OPS (catpt_runtime_suspend, catpt_runtime_resume,NULL ) + SYSTEM_SLEEP_PM_OPS(catpt_suspend, catpt_resume) +RUNTIME_PM_OPS (catpt_runtime_suspend, catpt_runtime_resume,NULL ) };/* machine board owned by CATPT is removed with this hook */ @@ -378,7 +378,7 @@ static struct platform_driver catpt_acpi_driver = { .driver = { .name = "intel_catpt", .acpi_match_table = catpt_ids, - .pm = &catpt_dev_pm, + .pm = pm_ptr(&catpt_dev_pm), .dev_groups = catpt_attr_groups, }, };
Re: [PATCH v2 62/88] ASoC: intel: catpt: Convert to RUNTIME_PM_OPS() & co
Quoted 10 lines · Cezary Rojewski
Quoted 4 lines · Takashi Iwai
Use the newer
RUNTIME_PM_OPS()andSYSTEM_SLEEP_PM_OPS()macros instead ofSET_RUNTIME_PM_OPS()andSET_SYSTEM_SLEEP_PM_OPS()together withpm_ptr(), which allows us dropping ugly__maybe_unusedattributes.Off-topic comment:
While__maybe_unusedmay not be the prettiest, it is still better alternative than #if/ifdef spam all over the code if you ask me.
Yeah, that's why we introduced it in the past.
The downside is it's often more cumbersome to rip it off than the explicit ifdef.
thanks,
Takashi
PATCH v2 63/88 ASoC: mediatek: mt2701: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr().
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c +3 -3
@@ -1462,15 +1462,15 @@ static const struct of_device_id mt2701_afe_pcm_dt_match[] = {MODULE_DEVICE_TABLE (of, mt2701_afe_pcm_dt_match);static const struct dev_pm_ops mt2701_afe_pm_ops = { -SET_RUNTIME_PM_OPS (mt2701_afe_runtime_suspend, - mt2701_afe_runtime_resume,NULL ) +RUNTIME_PM_OPS (mt2701_afe_runtime_suspend, + mt2701_afe_runtime_resume,NULL ) };static struct platform_driver mt2701_afe_pcm_driver = { .driver = { .name ="mt2701-audio" , .of_match_table = mt2701_afe_pcm_dt_match, - .pm = &mt2701_afe_pm_ops, + .pm =pm_ptr (&mt2701_afe_pm_ops), }, .probe = mt2701_afe_pcm_dev_probe, .remove = mt2701_afe_pcm_dev_remove,
Signature · 1 line
2.43.0
PATCH v2 64/88 ASoC: mediatek: mt6797: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr().
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/mediatek/mt6797/mt6797-afe-pcm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/mediatek/mt6797/mt6797-afe-pcm.c +3 -3
@@ -879,15 +879,15 @@ static const struct of_device_id mt6797_afe_pcm_dt_match[] = {MODULE_DEVICE_TABLE (of, mt6797_afe_pcm_dt_match);static const struct dev_pm_ops mt6797_afe_pm_ops = { -SET_RUNTIME_PM_OPS (mt6797_afe_runtime_suspend, - mt6797_afe_runtime_resume,NULL ) +RUNTIME_PM_OPS (mt6797_afe_runtime_suspend, + mt6797_afe_runtime_resume,NULL ) };static struct platform_driver mt6797_afe_pcm_driver = { .driver = { .name ="mt6797-audio" , .of_match_table = mt6797_afe_pcm_dt_match, - .pm = &mt6797_afe_pm_ops, + .pm =pm_ptr (&mt6797_afe_pm_ops), }, .probe = mt6797_afe_pcm_dev_probe, .remove = mt6797_afe_pcm_dev_remove,
Signature · 1 line
2.43.0
PATCH v2 65/88 ASoC: mediatek: mt7986: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr().
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/mediatek/mt7986/mt7986-afe-pcm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/mediatek/mt7986/mt7986-afe-pcm.c +3 -3
@@ -589,15 +589,15 @@ static const struct of_device_id mt7986_afe_pcm_dt_match[] = {MODULE_DEVICE_TABLE (of, mt7986_afe_pcm_dt_match);static const struct dev_pm_ops mt7986_afe_pm_ops = { -SET_RUNTIME_PM_OPS (mt7986_afe_runtime_suspend, - mt7986_afe_runtime_resume,NULL ) +RUNTIME_PM_OPS (mt7986_afe_runtime_suspend, + mt7986_afe_runtime_resume,NULL ) };static struct platform_driver mt7986_afe_pcm_driver = { .driver = { .name ="mt7986-audio" , .of_match_table = mt7986_afe_pcm_dt_match, - .pm = &mt7986_afe_pm_ops, + .pm =pm_ptr (&mt7986_afe_pm_ops), }, .probe = mt7986_afe_pcm_dev_probe, .remove = mt7986_afe_pcm_dev_remove,
Signature · 1 line
2.43.0
PATCH v2 66/88 ASoC: mediatek: mt8173: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr().
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/mediatek/mt8173/mt8173-afe-pcm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c +3 -3
@@ -1212,15 +1212,15 @@ static const struct of_device_id mt8173_afe_pcm_dt_match[] = {MODULE_DEVICE_TABLE (of, mt8173_afe_pcm_dt_match);static const struct dev_pm_ops mt8173_afe_pm_ops = { -SET_RUNTIME_PM_OPS (mt8173_afe_runtime_suspend, - mt8173_afe_runtime_resume,NULL ) +RUNTIME_PM_OPS (mt8173_afe_runtime_suspend, + mt8173_afe_runtime_resume,NULL ) };static struct platform_driver mt8173_afe_pcm_driver = { .driver = { .name ="mt8173-afe-pcm" , .of_match_table = mt8173_afe_pcm_dt_match, - .pm = &mt8173_afe_pm_ops, + .pm =pm_ptr (&mt8173_afe_pm_ops), }, .probe = mt8173_afe_pcm_dev_probe, .remove = mt8173_afe_pcm_dev_remove,
Signature · 1 line
2.43.0
PATCH v2 67/88 ASoC: mediatek: mt8183: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr().
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/mediatek/mt8183/mt8183-afe-pcm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c +3 -3
@@ -1257,15 +1257,15 @@ static const struct of_device_id mt8183_afe_pcm_dt_match[] = {MODULE_DEVICE_TABLE (of, mt8183_afe_pcm_dt_match);static const struct dev_pm_ops mt8183_afe_pm_ops = { -SET_RUNTIME_PM_OPS (mt8183_afe_runtime_suspend, - mt8183_afe_runtime_resume,NULL ) +RUNTIME_PM_OPS (mt8183_afe_runtime_suspend, + mt8183_afe_runtime_resume,NULL ) };static struct platform_driver mt8183_afe_pcm_driver = { .driver = { .name ="mt8183-audio" , .of_match_table = mt8183_afe_pcm_dt_match, - .pm = &mt8183_afe_pm_ops, + .pm =pm_ptr (&mt8183_afe_pm_ops), }, .probe = mt8183_afe_pcm_dev_probe, .remove = mt8183_afe_pcm_dev_remove,
Signature · 1 line
2.43.0
PATCH v2 68/88 ASoC: mediatek: mt8186: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr().
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/mediatek/mt8186/mt8186-afe-pcm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c +3 -3
@@ -2978,15 +2978,15 @@ static const struct of_device_id mt8186_afe_pcm_dt_match[] = {MODULE_DEVICE_TABLE (of, mt8186_afe_pcm_dt_match);static const struct dev_pm_ops mt8186_afe_pm_ops = { -SET_RUNTIME_PM_OPS (mt8186_afe_runtime_suspend, - mt8186_afe_runtime_resume,NULL ) +RUNTIME_PM_OPS (mt8186_afe_runtime_suspend, + mt8186_afe_runtime_resume,NULL ) };static struct platform_driver mt8186_afe_pcm_driver = { .driver = { .name ="mt8186-audio" , .of_match_table = mt8186_afe_pcm_dt_match, - .pm = &mt8186_afe_pm_ops, + .pm =pm_ptr (&mt8186_afe_pm_ops), }, .probe = mt8186_afe_pcm_dev_probe, };
Signature · 1 line
2.43.0
PATCH v2 69/88 ASoC: mediatek: mt8188: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr().
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/mediatek/mt8188/mt8188-afe-pcm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c +3 -3
@@ -3381,15 +3381,15 @@ static const struct of_device_id mt8188_afe_pcm_dt_match[] = {MODULE_DEVICE_TABLE (of, mt8188_afe_pcm_dt_match);static const struct dev_pm_ops mt8188_afe_pm_ops = { -SET_RUNTIME_PM_OPS (mt8188_afe_runtime_suspend, - mt8188_afe_runtime_resume,NULL ) +RUNTIME_PM_OPS (mt8188_afe_runtime_suspend, + mt8188_afe_runtime_resume,NULL ) };static struct platform_driver mt8188_afe_pcm_driver = { .driver = { .name ="mt8188-audio" , .of_match_table = mt8188_afe_pcm_dt_match, - .pm = &mt8188_afe_pm_ops, + .pm =pm_ptr (&mt8188_afe_pm_ops), }, .probe = mt8188_afe_pcm_dev_probe, };
Signature · 1 line
2.43.0
PATCH v2 70/88 ASoC: mediatek: mt8192: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr().
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/mediatek/mt8192/mt8192-afe-pcm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c +3 -3
@@ -2313,15 +2313,15 @@ static const struct of_device_id mt8192_afe_pcm_dt_match[] = {MODULE_DEVICE_TABLE (of, mt8192_afe_pcm_dt_match);static const struct dev_pm_ops mt8192_afe_pm_ops = { -SET_RUNTIME_PM_OPS (mt8192_afe_runtime_suspend, - mt8192_afe_runtime_resume,NULL ) +RUNTIME_PM_OPS (mt8192_afe_runtime_suspend, + mt8192_afe_runtime_resume,NULL ) };static struct platform_driver mt8192_afe_pcm_driver = { .driver = { .name ="mt8192-audio" , .of_match_table = mt8192_afe_pcm_dt_match, - .pm = &mt8192_afe_pm_ops, + .pm =pm_ptr (&mt8192_afe_pm_ops), }, .probe = mt8192_afe_pcm_dev_probe, .remove = mt8192_afe_pcm_dev_remove,
Signature · 1 line
2.43.0
PATCH v2 71/88 ASoC: mediatek: mt8195: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr().
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/mediatek/mt8195/mt8195-afe-pcm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c +3 -3
@@ -3188,15 +3188,15 @@ static const struct of_device_id mt8195_afe_pcm_dt_match[] = {MODULE_DEVICE_TABLE (of, mt8195_afe_pcm_dt_match);static const struct dev_pm_ops mt8195_afe_pm_ops = { -SET_RUNTIME_PM_OPS (mt8195_afe_runtime_suspend, - mt8195_afe_runtime_resume,NULL ) +RUNTIME_PM_OPS (mt8195_afe_runtime_suspend, + mt8195_afe_runtime_resume,NULL ) };static struct platform_driver mt8195_afe_pcm_driver = { .driver = { .name ="mt8195-audio" , .of_match_table = mt8195_afe_pcm_dt_match, - .pm = &mt8195_afe_pm_ops, + .pm =pm_ptr (&mt8195_afe_pm_ops), }, .probe = mt8195_afe_pcm_dev_probe, .remove = mt8195_afe_pcm_dev_remove,
Signature · 1 line
2.43.0
PATCH v2 72/88 ASoC: mediatek: mt8365: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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 to drop ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/mediatek/mt8365/mt8365-afe-pcm.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-)
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c +9 -10
@@ -1957,7 +1957,7 @@ static irqreturn_t mt8365_afe_irq_handler(int irq, void *dev_id)return IRQ_HANDLED ; } -static int __maybe_unused mt8365_afe_runtime_suspend (struct device *dev) +static int mt8365_afe_runtime_suspend (struct device *dev) {return 0 ; }
@@ -1967,7 +1967,7 @@ static int mt8365_afe_runtime_resume(struct device *dev)return 0 ; } -static int __maybe_unused mt8365_afe_suspend (struct device *dev) +static int mt8365_afe_suspend (struct device *dev) {struct mtk_base_afe *afe =dev_get_drvdata (dev);struct regmap *regmap = afe->regmap;
@@ -1989,7 +1989,7 @@ static int __maybe_unused mt8365_afe_suspend(struct device *dev)return 0 ; } -static int __maybe_unused mt8365_afe_resume (struct device *dev) +static int mt8365_afe_resume (struct device *dev) {struct mtk_base_afe *afe =dev_get_drvdata (dev);struct regmap *regmap = afe->regmap;
@@ -2009,7 +2009,7 @@ static int __maybe_unused mt8365_afe_resume(struct device *dev)return 0 ; } -static int __maybe_unused mt8365_afe_dev_runtime_suspend (struct device *dev) +static int mt8365_afe_dev_runtime_suspend (struct device *dev) {struct mtk_base_afe *afe =dev_get_drvdata (dev);
@@ -2021,7 +2021,7 @@ static int __maybe_unused mt8365_afe_dev_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused mt8365_afe_dev_runtime_resume (struct device *dev) +static int mt8365_afe_dev_runtime_resume (struct device *dev) {struct mtk_base_afe *afe =dev_get_drvdata (dev);
@@ -2250,17 +2250,16 @@ static const struct of_device_id mt8365_afe_pcm_dt_match[] = {MODULE_DEVICE_TABLE (of, mt8365_afe_pcm_dt_match);static const struct dev_pm_ops mt8365_afe_pm_ops = { - SET_RUNTIME_PM_OPS(mt8365_afe_dev_runtime_suspend, - mt8365_afe_dev_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (mt8365_afe_suspend, - mt8365_afe_resume) + RUNTIME_PM_OPS(mt8365_afe_dev_runtime_suspend, + mt8365_afe_dev_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (mt8365_afe_suspend, mt8365_afe_resume) };static struct platform_driver mt8365_afe_pcm_driver = { .driver = { .name ="mt8365-afe-pcm" , .of_match_table = mt8365_afe_pcm_dt_match, - .pm = &mt8365_afe_pm_ops, + .pm =pm_ptr (&mt8365_afe_pm_ops), }, .probe = mt8365_afe_pcm_dev_probe, .remove = mt8365_afe_pcm_dev_remove,
Signature · 1 line
2.43.0
PATCH v2 73/88 ASoC: qcom: Convert to SYSTEM_SLEEP_PM_OPS()
In reply to Takashi IwaiUse the newer SYSTEM_SLEEP_PM_OPS() macro instead of SET_SYSTEM_SLEEP_PM_OPS() together with pm_ptr(), which allows us to drop ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/qcom/lpass-sc7180.c | 8 ++++---- sound/soc/qcom/lpass-sc7280.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-)
sound/soc/qcom/lpass-sc7180.c +4 -4
@@ -160,14 +160,14 @@ static int sc7180_lpass_exit(struct platform_device *pdev)return 0 ; } -static int __maybe_unused sc7180_lpass_dev_resume (struct device *dev) +static int sc7180_lpass_dev_resume (struct device *dev) {struct lpass_data *drvdata =dev_get_drvdata (dev);return clk_bulk_prepare_enable (drvdata->num_clks, drvdata->clks); } -static int __maybe_unused sc7180_lpass_dev_suspend (struct device *dev) +static int sc7180_lpass_dev_suspend (struct device *dev) {struct lpass_data *drvdata =dev_get_drvdata (dev);
@@ -176,7 +176,7 @@ static int __maybe_unused sc7180_lpass_dev_suspend(struct device *dev) }static const struct dev_pm_ops sc7180_lpass_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (sc7180_lpass_dev_suspend, sc7180_lpass_dev_resume) +SYSTEM_SLEEP_PM_OPS (sc7180_lpass_dev_suspend, sc7180_lpass_dev_resume) };static const struct lpass_variant sc7180_data = {
@@ -312,7 +312,7 @@ static struct platform_driver sc7180_lpass_cpu_platform_driver = { .driver = { .name = "sc7180-lpass-cpu", .of_match_table = of_match_ptr(sc7180_lpass_cpu_device_id), - .pm = &sc7180_lpass_pm_ops, + .pm = pm_ptr(&sc7180_lpass_pm_ops), }, .probe = asoc_qcom_lpass_cpu_platform_probe, .remove = asoc_qcom_lpass_cpu_platform_remove,
sound/soc/qcom/lpass-sc7280.c +4 -4
@@ -233,14 +233,14 @@ static int sc7280_lpass_exit(struct platform_device *pdev)return 0 ; } -static int __maybe_unused sc7280_lpass_dev_resume (struct device *dev) +static int sc7280_lpass_dev_resume (struct device *dev) {struct lpass_data *drvdata =dev_get_drvdata (dev);return clk_bulk_prepare_enable (drvdata->num_clks, drvdata->clks); } -static int __maybe_unused sc7280_lpass_dev_suspend (struct device *dev) +static int sc7280_lpass_dev_suspend (struct device *dev) {struct lpass_data *drvdata =dev_get_drvdata (dev);
@@ -249,7 +249,7 @@ static int __maybe_unused sc7280_lpass_dev_suspend(struct device *dev) }static const struct dev_pm_ops sc7280_lpass_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (sc7280_lpass_dev_suspend, sc7280_lpass_dev_resume) +SYSTEM_SLEEP_PM_OPS (sc7280_lpass_dev_suspend, sc7280_lpass_dev_resume) };static const struct lpass_variant sc7280_data = {
@@ -442,7 +442,7 @@ static struct platform_driver sc7280_lpass_cpu_platform_driver = { .driver = { .name = "sc7280-lpass-cpu", .of_match_table = of_match_ptr(sc7280_lpass_cpu_device_id), - .pm = &sc7280_lpass_pm_ops, + .pm = pm_ptr(&sc7280_lpass_pm_ops), }, .probe = asoc_qcom_lpass_cpu_platform_probe, .remove = asoc_qcom_lpass_cpu_platform_remove,
Signature · 1 line
2.43.0
PATCH v2 74/88 ASoC: rcar: Convert to SYSTEM_SLEEP_PM_OPS()
In reply to Takashi IwaiUse the newer SYSTEM_SLEEP_PM_OPS() macro instead of SET_SYSTEM_SLEEP_PM_OPS() together with pm_ptr(), which allows us to drop ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/renesas/rcar/core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/renesas/rcar/core.c +4 -4
@@ -2059,7 +2059,7 @@ static void rsnd_remove(struct platform_device *pdev) remove_func[i](priv); } -static int __maybe_unused rsnd_suspend (struct device *dev) +static int rsnd_suspend (struct device *dev) {struct rsnd_priv *priv =dev_get_drvdata (dev);
@@ -2068,7 +2068,7 @@ static int __maybe_unused rsnd_suspend(struct device *dev)return 0 ; } -static int __maybe_unused rsnd_resume (struct device *dev) +static int rsnd_resume (struct device *dev) {struct rsnd_priv *priv =dev_get_drvdata (dev);
@@ -2076,13 +2076,13 @@ static int __maybe_unused rsnd_resume(struct device *dev) }static const struct dev_pm_ops rsnd_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (rsnd_suspend, rsnd_resume) +SYSTEM_SLEEP_PM_OPS (rsnd_suspend, rsnd_resume) };static struct platform_driver rsnd_driver = { .driver = { .name ="rcar_sound" , - .pm = &rsnd_pm_ops, + .pm =pm_ptr (&rsnd_pm_ops), .of_match_table = rsnd_of_match, }, .probe = rsnd_probe,
Signature · 1 line
2.43.0
PATCH v2 75/88 ASoC: rockchip: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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 to drop ugly __maybe_unused attributes.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/rockchip/rockchip_i2s.c | 5 ++--- sound/soc/rockchip/rockchip_i2s_tdm.c | 16 +++++++--------- sound/soc/rockchip/rockchip_pdm.c | 10 ++++------ sound/soc/rockchip/rockchip_spdif.c | 9 ++++----- 4 files changed, 17 insertions(+), 23 deletions(-)
sound/soc/rockchip/rockchip_i2s.c +2 -3
@@ -860,8 +860,7 @@ static void rockchip_i2s_remove(struct platform_device *pdev) }static const struct dev_pm_ops rockchip_i2s_pm_ops = { -SET_RUNTIME_PM_OPS (i2s_runtime_suspend, i2s_runtime_resume, -NULL ) +RUNTIME_PM_OPS (i2s_runtime_suspend, i2s_runtime_resume,NULL ) };static struct platform_driver rockchip_i2s_driver = {
@@ -870,7 +869,7 @@ static struct platform_driver rockchip_i2s_driver = { .driver = { .name = DRV_NAME, .of_match_table = of_match_ptr(rockchip_i2s_match), - .pm = &rockchip_i2s_pm_ops, + .pm = pm_ptr(&rockchip_i2s_pm_ops), }, };module_platform_driver (rockchip_i2s_driver);
sound/soc/rockchip/rockchip_i2s_tdm.c +7 -9
@@ -122,7 +122,7 @@ static int i2s_tdm_prepare_enable_mclk(struct rk_i2s_tdm_dev *i2s_tdm)return ret; } -static int __maybe_unused i2s_tdm_runtime_suspend (struct device *dev) +static int i2s_tdm_runtime_suspend (struct device *dev) {struct rk_i2s_tdm_dev *i2s_tdm =dev_get_drvdata (dev);
@@ -134,7 +134,7 @@ static int __maybe_unused i2s_tdm_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused i2s_tdm_runtime_resume (struct device *dev) +static int i2s_tdm_runtime_resume (struct device *dev) {struct rk_i2s_tdm_dev *i2s_tdm =dev_get_drvdata (dev);int ret;
@@ -1390,7 +1390,7 @@ static void rockchip_i2s_tdm_remove(struct platform_device *pdev)pm_runtime_disable (&pdev->dev); } -static int __maybe_unused rockchip_i2s_tdm_suspend (struct device *dev) +static int rockchip_i2s_tdm_suspend (struct device *dev) {struct rk_i2s_tdm_dev *i2s_tdm =dev_get_drvdata (dev);
@@ -1399,7 +1399,7 @@ static int __maybe_unused rockchip_i2s_tdm_suspend(struct device *dev)return 0 ; } -static int __maybe_unused rockchip_i2s_tdm_resume (struct device *dev) +static int rockchip_i2s_tdm_resume (struct device *dev) {struct rk_i2s_tdm_dev *i2s_tdm =dev_get_drvdata (dev);int ret;
@@ -1414,10 +1414,8 @@ static int __maybe_unused rockchip_i2s_tdm_resume(struct device *dev) }static const struct dev_pm_ops rockchip_i2s_tdm_pm_ops = { - SET_RUNTIME_PM_OPS(i2s_tdm_runtime_suspend, i2s_tdm_runtime_resume, - NULL) -SET_SYSTEM_SLEEP_PM_OPS (rockchip_i2s_tdm_suspend, - rockchip_i2s_tdm_resume) + RUNTIME_PM_OPS(i2s_tdm_runtime_suspend, i2s_tdm_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (rockchip_i2s_tdm_suspend, rockchip_i2s_tdm_resume) };static struct platform_driver rockchip_i2s_tdm_driver = {
@@ -1426,7 +1424,7 @@ static struct platform_driver rockchip_i2s_tdm_driver = { .driver = { .name = DRV_NAME, .of_match_table = rockchip_i2s_tdm_match, - .pm = &rockchip_i2s_tdm_pm_ops, + .pm = pm_ptr(&rockchip_i2s_tdm_pm_ops), }, };module_platform_driver (rockchip_i2s_tdm_driver);
sound/soc/rockchip/rockchip_pdm.c +4 -6
@@ -668,7 +668,6 @@ static void rockchip_pdm_remove(struct platform_device *pdev)clk_disable_unprepare (pdm->hclk); } -#ifdef CONFIG_PM_SLEEP static int rockchip_pdm_suspend (struct device *dev) {struct rk_pdm_dev *pdm =dev_get_drvdata (dev);
@@ -693,12 +692,11 @@ static int rockchip_pdm_resume(struct device *dev)return ret; } -#endif static const struct dev_pm_ops rockchip_pdm_pm_ops = { - SET_RUNTIME_PM_OPS(rockchip_pdm_runtime_suspend, - rockchip_pdm_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (rockchip_pdm_suspend, rockchip_pdm_resume) + RUNTIME_PM_OPS(rockchip_pdm_runtime_suspend, + rockchip_pdm_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (rockchip_pdm_suspend, rockchip_pdm_resume) };static struct platform_driver rockchip_pdm_driver = {
@@ -707,7 +705,7 @@ static struct platform_driver rockchip_pdm_driver = { .driver = { .name = "rockchip-pdm", .of_match_table = of_match_ptr(rockchip_pdm_match), - .pm = &rockchip_pdm_pm_ops, + .pm = pm_ptr(&rockchip_pdm_pm_ops), }, };
sound/soc/rockchip/rockchip_spdif.c +4 -5
@@ -63,7 +63,7 @@ static const struct of_device_id rk_spdif_match[] __maybe_unused = { };MODULE_DEVICE_TABLE (of, rk_spdif_match); -static int __maybe_unused rk_spdif_runtime_suspend (struct device *dev) +static int rk_spdif_runtime_suspend (struct device *dev) {struct rk_spdif_dev *spdif =dev_get_drvdata (dev);
@@ -74,7 +74,7 @@ static int __maybe_unused rk_spdif_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused rk_spdif_runtime_resume (struct device *dev) +static int rk_spdif_runtime_resume (struct device *dev) {struct rk_spdif_dev *spdif =dev_get_drvdata (dev);int ret;
@@ -374,8 +374,7 @@ static void rk_spdif_remove(struct platform_device *pdev) }static const struct dev_pm_ops rk_spdif_pm_ops = { -SET_RUNTIME_PM_OPS (rk_spdif_runtime_suspend, rk_spdif_runtime_resume, -NULL ) +RUNTIME_PM_OPS (rk_spdif_runtime_suspend, rk_spdif_runtime_resume,NULL ) };static struct platform_driver rk_spdif_driver = {
@@ -384,7 +383,7 @@ static struct platform_driver rk_spdif_driver = { .driver = { .name = "rockchip-spdif", .of_match_table = of_match_ptr(rk_spdif_match), - .pm = &rk_spdif_pm_ops, + .pm = pm_ptr(&rk_spdif_pm_ops), }, };module_platform_driver (rk_spdif_driver);
Signature · 1 line
2.43.0
PATCH v2 76/88 ASoC: samsung: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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 to drop superfluous CONFIG_PM ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/samsung/i2s.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
sound/soc/samsung/i2s.c +3 -7
@@ -1216,7 +1216,6 @@ static int i2s_alloc_dais(struct samsung_i2s_priv *priv,return 0 ; } -#ifdef CONFIG_PM static int i2s_runtime_suspend (struct device *dev) {struct samsung_i2s_priv *priv =dev_get_drvdata (dev);
@@ -1254,7 +1253,6 @@ static int i2s_runtime_resume(struct device *dev)return 0 ; } -#endif /* CONFIG_PM */ static void i2s_unregister_clocks (struct samsung_i2s_priv *priv) {
@@ -1733,10 +1731,8 @@ MODULE_DEVICE_TABLE(of, exynos_i2s_match);#endif static const struct dev_pm_ops samsung_i2s_pm = { - SET_RUNTIME_PM_OPS(i2s_runtime_suspend, - i2s_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(i2s_runtime_suspend, i2s_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct platform_driver samsung_i2s_driver = {
@@ -1746,7 +1742,7 @@ static struct platform_driver samsung_i2s_driver = { .driver = { .name = "samsung-i2s", .of_match_table = of_match_ptr(exynos_i2s_match), - .pm = &samsung_i2s_pm, + .pm = pm_ptr(&samsung_i2s_pm), }, };
Signature · 1 line
2.43.0
RE: [PATCH v2 76/88] ASoC: samsung: Convert to RUNTIME_PM_OPS() & co
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 to drop superfluous CONFIG_PM ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/samsung/i2s.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
PATCH v2 77/88 ASoC: SOF: acpi: Convert to EXPORT_NS_DEV_PM_OPS()
In reply to Takashi IwaiUse the newer EXPORT_NS_DEV_PM_OPS() macro together with pm_ptr().
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/sof/intel/bdw.c | 2 +- sound/soc/sof/intel/byt.c | 2 +- sound/soc/sof/sof-acpi-dev.c | 9 ++++----- 3 files changed, 6 insertions(+), 7 deletions(-)
sound/soc/sof/intel/bdw.c +1 -1
@@ -686,7 +686,7 @@ static struct platform_driver snd_sof_acpi_intel_bdw_driver = { .remove = sof_acpi_remove, .driver = { .name = "sof-audio-acpi-intel-bdw", - .pm = &sof_acpi_pm, + .pm = pm_ptr(&sof_acpi_pm), .acpi_match_table = sof_broadwell_match, }, };
sound/soc/sof/intel/byt.c +1 -1
@@ -467,7 +467,7 @@ static struct platform_driver snd_sof_acpi_intel_byt_driver = { .remove = sof_acpi_remove, .driver = { .name = "sof-audio-acpi-intel-byt", - .pm = &sof_acpi_pm, + .pm = pm_ptr(&sof_acpi_pm), .acpi_match_table = sof_baytrail_match, }, };
sound/soc/sof/sof-acpi-dev.c +4 -5
@@ -36,12 +36,11 @@ MODULE_PARM_DESC(sof_acpi_debug, "SOF ACPI debug options (0x0 all off)");#define SOF_ACPI_DISABLE_PM_RUNTIME BIT(0) -const struct dev_pm_ops sof_acpi_pm = { - SET_SYSTEM_SLEEP_PM_OPS(snd_sof_suspend, snd_sof_resume) -SET_RUNTIME_PM_OPS (snd_sof_runtime_suspend, snd_sof_runtime_resume, - snd_sof_runtime_idle) +EXPORT_NS_DEV_PM_OPS(sof_acpi_pm, SND_SOC_SOF_ACPI_DEV) = { + SYSTEM_SLEEP_PM_OPS(snd_sof_suspend, snd_sof_resume) +RUNTIME_PM_OPS (snd_sof_runtime_suspend, snd_sof_runtime_resume, + snd_sof_runtime_idle) }; -EXPORT_SYMBOL_NS (sof_acpi_pm,"SND_SOC_SOF_ACPI_DEV" );static void sof_acpi_probe_complete (struct device *dev) {
Signature · 1 line
2.43.0
PATCH v2 78/88 ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS()
In reply to Takashi IwaiUse the newer EXPORT_NS_DEV_PM_OPS() macro together with pm_ptr().
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/sof/amd/pci-acp63.c | 2 +- sound/soc/sof/amd/pci-acp70.c | 2 +- sound/soc/sof/amd/pci-rn.c | 2 +- sound/soc/sof/amd/pci-vangogh.c | 2 +- sound/soc/sof/intel/pci-apl.c | 2 +- sound/soc/sof/intel/pci-cnl.c | 2 +- sound/soc/sof/intel/pci-icl.c | 2 +- sound/soc/sof/intel/pci-lnl.c | 2 +- sound/soc/sof/intel/pci-mtl.c | 2 +- sound/soc/sof/intel/pci-ptl.c | 2 +- sound/soc/sof/intel/pci-skl.c | 2 +- sound/soc/sof/intel/pci-tgl.c | 2 +- sound/soc/sof/intel/pci-tng.c | 2 +- sound/soc/sof/sof-pci-dev.c | 9 ++++----- 14 files changed, 17 insertions(+), 18 deletions(-)
sound/soc/sof/amd/pci-acp63.c +1 -1
@@ -104,7 +104,7 @@ static struct pci_driver snd_sof_pci_amd_acp63_driver = { .probe = acp63_pci_probe, .remove = acp63_pci_remove, .driver = { - .pm = &sof_pci_pm, + .pm = pm_ptr(&sof_pci_pm), }, };module_pci_driver (snd_sof_pci_amd_acp63_driver);
sound/soc/sof/amd/pci-acp70.c +1 -1
@@ -100,7 +100,7 @@ static struct pci_driver snd_sof_pci_amd_acp70_driver = { .probe = acp70_pci_probe, .remove = acp70_pci_remove, .driver = { - .pm = &sof_pci_pm, + .pm = pm_ptr(&sof_pci_pm), }, };module_pci_driver (snd_sof_pci_amd_acp70_driver);
sound/soc/sof/amd/pci-rn.c +1 -1
@@ -97,7 +97,7 @@ static struct pci_driver snd_sof_pci_amd_rn_driver = { .probe = acp_pci_rn_probe, .remove = acp_pci_rn_remove, .driver = { - .pm = &sof_pci_pm, + .pm = pm_ptr(&sof_pci_pm), }, };module_pci_driver (snd_sof_pci_amd_rn_driver);
sound/soc/sof/amd/pci-vangogh.c +1 -1
@@ -90,7 +90,7 @@ static struct pci_driver snd_sof_pci_amd_vgh_driver = { .probe = acp_pci_vgh_probe, .remove = acp_pci_vgh_remove, .driver = { - .pm = &sof_pci_pm, + .pm = pm_ptr(&sof_pci_pm), }, };module_pci_driver (snd_sof_pci_amd_vgh_driver);
sound/soc/sof/intel/pci-apl.c +1 -1
@@ -99,7 +99,7 @@ static struct pci_driver snd_sof_pci_intel_apl_driver = { .remove = sof_pci_remove, .shutdown = sof_pci_shutdown, .driver = { - .pm = &sof_pci_pm, + .pm = pm_ptr(&sof_pci_pm), }, };module_pci_driver (snd_sof_pci_intel_apl_driver);
sound/soc/sof/intel/pci-cnl.c +1 -1
@@ -137,7 +137,7 @@ static struct pci_driver snd_sof_pci_intel_cnl_driver = { .remove = sof_pci_remove, .shutdown = sof_pci_shutdown, .driver = { - .pm = &sof_pci_pm, + .pm = pm_ptr(&sof_pci_pm), }, };module_pci_driver (snd_sof_pci_intel_cnl_driver);
sound/soc/sof/intel/pci-icl.c +1 -1
@@ -102,7 +102,7 @@ static struct pci_driver snd_sof_pci_intel_icl_driver = { .remove = sof_pci_remove, .shutdown = sof_pci_shutdown, .driver = { - .pm = &sof_pci_pm, + .pm = pm_ptr(&sof_pci_pm), }, };module_pci_driver (snd_sof_pci_intel_icl_driver);
sound/soc/sof/intel/pci-lnl.c +1 -1
@@ -72,7 +72,7 @@ static struct pci_driver snd_sof_pci_intel_lnl_driver = { .remove = sof_pci_remove, .shutdown = sof_pci_shutdown, .driver = { - .pm = &sof_pci_pm, + .pm = pm_ptr(&sof_pci_pm), }, };module_pci_driver (snd_sof_pci_intel_lnl_driver);
sound/soc/sof/intel/pci-mtl.c +1 -1
@@ -135,7 +135,7 @@ static struct pci_driver snd_sof_pci_intel_mtl_driver = { .remove = sof_pci_remove, .shutdown = sof_pci_shutdown, .driver = { - .pm = &sof_pci_pm, + .pm = pm_ptr(&sof_pci_pm), }, };module_pci_driver (snd_sof_pci_intel_mtl_driver);
sound/soc/sof/intel/pci-ptl.c +1 -1
@@ -71,7 +71,7 @@ static struct pci_driver snd_sof_pci_intel_ptl_driver = { .remove = sof_pci_remove, .shutdown = sof_pci_shutdown, .driver = { - .pm = &sof_pci_pm, + .pm = pm_ptr(&sof_pci_pm), }, };module_pci_driver (snd_sof_pci_intel_ptl_driver);
sound/soc/sof/intel/pci-skl.c +1 -1
@@ -83,7 +83,7 @@ static struct pci_driver snd_sof_pci_intel_skl_driver = { .remove = sof_pci_remove, .shutdown = sof_pci_shutdown, .driver = { - .pm = &sof_pci_pm, + .pm = pm_ptr(&sof_pci_pm), }, };module_pci_driver (snd_sof_pci_intel_skl_driver);
sound/soc/sof/intel/pci-tgl.c +1 -1
@@ -311,7 +311,7 @@ static struct pci_driver snd_sof_pci_intel_tgl_driver = { .remove = sof_pci_remove, .shutdown = sof_pci_shutdown, .driver = { - .pm = &sof_pci_pm, + .pm = pm_ptr(&sof_pci_pm), }, };module_pci_driver (snd_sof_pci_intel_tgl_driver);
sound/soc/sof/intel/pci-tng.c +1 -1
@@ -238,7 +238,7 @@ static struct pci_driver snd_sof_pci_intel_tng_driver = { .remove = sof_pci_remove, .shutdown = sof_pci_shutdown, .driver = { - .pm = &sof_pci_pm, + .pm = pm_ptr(&sof_pci_pm), }, };module_pci_driver (snd_sof_pci_intel_tng_driver);
sound/soc/sof/sof-pci-dev.c +4 -5
@@ -155,14 +155,13 @@ static const struct dmi_system_id community_key_platforms[] = { {}, }; -const struct dev_pm_ops sof_pci_pm = { +EXPORT_NS_DEV_PM_OPS(sof_pci_pm, SND_SOC_SOF_PCI_DEV) = { .prepare = snd_sof_prepare, .complete = snd_sof_complete, - SET_SYSTEM_SLEEP_PM_OPS(snd_sof_suspend, snd_sof_resume) -SET_RUNTIME_PM_OPS (snd_sof_runtime_suspend, snd_sof_runtime_resume, - snd_sof_runtime_idle) + SYSTEM_SLEEP_PM_OPS(snd_sof_suspend, snd_sof_resume) +RUNTIME_PM_OPS (snd_sof_runtime_suspend, snd_sof_runtime_resume, + snd_sof_runtime_idle) }; -EXPORT_SYMBOL_NS (sof_pci_pm,"SND_SOC_SOF_PCI_DEV" );static void sof_pci_probe_complete (struct device *dev) {
Signature · 1 line
2.43.0
PATCH v2 79/88 ASoC: SOF: of: Convert to EXPORT_DEV_PM_OPS()
In reply to Takashi IwaiUse the newer EXPORT_DEV_PM_OPS() macro together with pm_ptr().
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/sof/imx/imx8.c | 2 +- sound/soc/sof/imx/imx9.c | 2 +- sound/soc/sof/mediatek/mt8186/mt8186.c | 2 +- sound/soc/sof/mediatek/mt8195/mt8195.c | 2 +- sound/soc/sof/sof-of-dev.c | 8 +++----- 5 files changed, 7 insertions(+), 9 deletions(-)
sound/soc/sof/imx/imx8.c +1 -1
@@ -456,7 +456,7 @@ static struct platform_driver snd_sof_of_imx8_driver = { .remove = sof_of_remove, .driver = { .name = "sof-audio-of-imx8", - .pm = &sof_of_pm, + .pm = pm_ptr(&sof_of_pm), .of_match_table = sof_of_imx8_ids, }, };
sound/soc/sof/imx/imx9.c +1 -1
@@ -126,7 +126,7 @@ static struct platform_driver snd_sof_of_imx9_driver = { .remove = sof_of_remove, .driver = { .name = "sof-audio-of-imx9", - .pm = &sof_of_pm, + .pm = pm_ptr(&sof_of_pm), .of_match_table = sof_of_imx9_ids, }, };
sound/soc/sof/mediatek/mt8186/mt8186.c +1 -1
@@ -660,7 +660,7 @@ static struct platform_driver snd_sof_of_mt8186_driver = { .shutdown = sof_of_shutdown, .driver = { .name = "sof-audio-of-mt8186", - .pm = &sof_of_pm, + .pm = pm_ptr(&sof_of_pm), .of_match_table = sof_of_mt8186_ids, }, };
sound/soc/sof/mediatek/mt8195/mt8195.c +1 -1
@@ -616,7 +616,7 @@ static struct platform_driver snd_sof_of_mt8195_driver = { .shutdown = sof_of_shutdown, .driver = { .name = "sof-audio-of-mt8195", - .pm = &sof_of_pm, + .pm = pm_ptr(&sof_of_pm), .of_match_table = sof_of_mt8195_ids, }, };
sound/soc/sof/sof-of-dev.c +3 -5
@@ -30,14 +30,12 @@ static char *tplg_filename;module_param (tplg_filename, charp,0444 );MODULE_PARM_DESC (tplg_filename,"deprecated - moved to snd-sof module." ); -const struct dev_pm_ops sof_of_pm = { +EXPORT_DEV_PM_OPS (sof_of_pm) = { .prepare = snd_sof_prepare, .complete = snd_sof_complete, - SET_SYSTEM_SLEEP_PM_OPS(snd_sof_suspend, snd_sof_resume) -SET_RUNTIME_PM_OPS (snd_sof_runtime_suspend, snd_sof_runtime_resume, -NULL ) + SYSTEM_SLEEP_PM_OPS(snd_sof_suspend, snd_sof_resume) +RUNTIME_PM_OPS (snd_sof_runtime_suspend, snd_sof_runtime_resume,NULL ) }; -EXPORT_SYMBOL (sof_of_pm);static void sof_of_probe_complete (struct device *dev) {
Signature · 1 line
2.43.0
PATCH v2 80/88 ASoC: stm: Convert to SYSTEM_SLEEP_PM_OPS()
In reply to Takashi IwaiUse the newer SYSTEM_SLEEP_PM_OPS() macro instead SET_SYSTEM_SLEEP_PM_OPS() together with pm_ptr(), which allows us dropping superfluous CONFIG_PM_SLEEP ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/stm/stm32_i2s.c | 6 ++---- sound/soc/stm/stm32_sai.c | 6 ++---- sound/soc/stm/stm32_sai_sub.c | 6 ++---- sound/soc/stm/stm32_spdifrx.c | 6 ++---- 4 files changed, 8 insertions(+), 16 deletions(-)
sound/soc/stm/stm32_i2s.c +2 -4
@@ -1352,7 +1352,6 @@ static int stm32_i2s_probe(struct platform_device *pdev)MODULE_DEVICE_TABLE (of, stm32_i2s_ids); -#ifdef CONFIG_PM_SLEEP static int stm32_i2s_suspend (struct device *dev) {struct stm32_i2s_data *i2s =dev_get_drvdata (dev);
@@ -1370,17 +1369,16 @@ static int stm32_i2s_resume(struct device *dev)regcache_cache_only (i2s->regmap, false);return regcache_sync (i2s->regmap); } -#endif /* CONFIG_PM_SLEEP */ static const struct dev_pm_ops stm32_i2s_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (stm32_i2s_suspend, stm32_i2s_resume) +SYSTEM_SLEEP_PM_OPS (stm32_i2s_suspend, stm32_i2s_resume) };static struct platform_driver stm32_i2s_driver = { .driver = { .name ="st,stm32-i2s" , .of_match_table = stm32_i2s_ids, - .pm = &stm32_i2s_pm_ops, + .pm =pm_ptr (&stm32_i2s_pm_ops), }, .probe = stm32_i2s_probe, .remove = stm32_i2s_remove,
sound/soc/stm/stm32_sai.c +2 -4
@@ -270,7 +270,6 @@ static int stm32_sai_probe(struct platform_device *pdev)return devm_of_platform_populate (&pdev->dev); } -#ifdef CONFIG_PM_SLEEP /* * When pins are shared by two sai sub instances, pins have to be defined * in sai parent node. In this case, pins state is not managed by alsa fw.
@@ -305,10 +304,9 @@ static int stm32_sai_resume(struct device *dev)return pinctrl_pm_select_default_state (dev); } -#endif /* CONFIG_PM_SLEEP */ static const struct dev_pm_ops stm32_sai_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (stm32_sai_suspend, stm32_sai_resume) +SYSTEM_SLEEP_PM_OPS (stm32_sai_suspend, stm32_sai_resume) };MODULE_DEVICE_TABLE (of, stm32_sai_ids);
@@ -317,7 +315,7 @@ static struct platform_driver stm32_sai_driver = { .driver = { .name = "st,stm32-sai", .of_match_table = stm32_sai_ids, - .pm = &stm32_sai_pm_ops, + .pm = pm_ptr(&stm32_sai_pm_ops), }, .probe = stm32_sai_probe, };
sound/soc/stm/stm32_sai_sub.c +2 -4
@@ -1704,7 +1704,6 @@ static void stm32_sai_sub_remove(struct platform_device *pdev)pm_runtime_disable (&pdev->dev); } -#ifdef CONFIG_PM_SLEEP static int stm32_sai_sub_suspend (struct device *dev) {struct stm32_sai_sub_data *sai =dev_get_drvdata (dev);
@@ -1738,17 +1737,16 @@ static int stm32_sai_sub_resume(struct device *dev)return ret; } -#endif /* CONFIG_PM_SLEEP */ static const struct dev_pm_ops stm32_sai_sub_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (stm32_sai_sub_suspend, stm32_sai_sub_resume) +SYSTEM_SLEEP_PM_OPS (stm32_sai_sub_suspend, stm32_sai_sub_resume) };static struct platform_driver stm32_sai_sub_driver = { .driver = { .name ="st,stm32-sai-sub" , .of_match_table = stm32_sai_sub_ids, - .pm = &stm32_sai_sub_pm_ops, + .pm =pm_ptr (&stm32_sai_sub_pm_ops), }, .probe = stm32_sai_sub_probe, .remove = stm32_sai_sub_remove,
sound/soc/stm/stm32_spdifrx.c +2 -4
@@ -1040,7 +1040,6 @@ static int stm32_spdifrx_probe(struct platform_device *pdev)MODULE_DEVICE_TABLE (of, stm32_spdifrx_ids); -#ifdef CONFIG_PM_SLEEP static int stm32_spdifrx_suspend (struct device *dev) {struct stm32_spdifrx_data *spdifrx =dev_get_drvdata (dev);
@@ -1059,17 +1058,16 @@ static int stm32_spdifrx_resume(struct device *dev)return regcache_sync (spdifrx->regmap); } -#endif /* CONFIG_PM_SLEEP */ static const struct dev_pm_ops stm32_spdifrx_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (stm32_spdifrx_suspend, stm32_spdifrx_resume) +SYSTEM_SLEEP_PM_OPS (stm32_spdifrx_suspend, stm32_spdifrx_resume) };static struct platform_driver stm32_spdifrx_driver = { .driver = { .name ="st,stm32-spdifrx" , .of_match_table = stm32_spdifrx_ids, - .pm = &stm32_spdifrx_pm_ops, + .pm =pm_ptr (&stm32_spdifrx_pm_ops), }, .probe = stm32_spdifrx_probe, .remove = stm32_spdifrx_remove,
Signature · 1 line
2.43.0
PATCH v2 81/88 ASoC: sunxi: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() instead of SET_RUNTIME_PM_OPS() together with pm_ptr().
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/sunxi/sun4i-spdif.c | 6 +++--- sound/soc/sunxi/sun50i-dmic.c | 6 +++--- sound/soc/sunxi/sun8i-codec.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-)
sound/soc/sunxi/sun4i-spdif.c +3 -3
@@ -727,15 +727,15 @@ static void sun4i_spdif_remove(struct platform_device *pdev) }static const struct dev_pm_ops sun4i_spdif_pm = { -SET_RUNTIME_PM_OPS (sun4i_spdif_runtime_suspend, - sun4i_spdif_runtime_resume,NULL ) +RUNTIME_PM_OPS (sun4i_spdif_runtime_suspend, + sun4i_spdif_runtime_resume,NULL ) };static struct platform_driver sun4i_spdif_driver = { .driver = { .name ="sun4i-spdif" , .of_match_table = sun4i_spdif_of_match, - .pm = &sun4i_spdif_pm, + .pm =pm_ptr (&sun4i_spdif_pm), }, .probe = sun4i_spdif_probe, .remove = sun4i_spdif_remove,
sound/soc/sunxi/sun50i-dmic.c +3 -3
@@ -415,15 +415,15 @@ static void sun50i_dmic_remove(struct platform_device *pdev) }static const struct dev_pm_ops sun50i_dmic_pm = { -SET_RUNTIME_PM_OPS (sun50i_dmic_runtime_suspend, - sun50i_dmic_runtime_resume,NULL ) +RUNTIME_PM_OPS (sun50i_dmic_runtime_suspend, + sun50i_dmic_runtime_resume,NULL ) };static struct platform_driver sun50i_dmic_driver = { .driver = { .name ="sun50i-dmic" , .of_match_table = sun50i_dmic_of_match, - .pm = &sun50i_dmic_pm, + .pm =pm_ptr (&sun50i_dmic_pm), }, .probe = sun50i_dmic_probe, .remove = sun50i_dmic_remove,
sound/soc/sunxi/sun8i-codec.c +3 -3
@@ -1702,15 +1702,15 @@ static const struct of_device_id sun8i_codec_of_match[] = {MODULE_DEVICE_TABLE (of, sun8i_codec_of_match);static const struct dev_pm_ops sun8i_codec_pm_ops = { -SET_RUNTIME_PM_OPS (sun8i_codec_runtime_suspend, - sun8i_codec_runtime_resume,NULL ) +RUNTIME_PM_OPS (sun8i_codec_runtime_suspend, + sun8i_codec_runtime_resume,NULL ) };static struct platform_driver sun8i_codec_driver = { .driver = { .name ="sun8i-codec" , .of_match_table = sun8i_codec_of_match, - .pm = &sun8i_codec_pm_ops, + .pm =pm_ptr (&sun8i_codec_pm_ops), }, .probe = sun8i_codec_probe, .remove = sun8i_codec_remove,
Signature · 1 line
2.43.0
PATCH v2 82/88 ASoC: tegra186: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/tegra/tegra186_asrc.c | 13 ++++++------- sound/soc/tegra/tegra186_dspk.c | 13 ++++++------- 2 files changed, 12 insertions(+), 14 deletions(-)
sound/soc/tegra/tegra186_asrc.c +6 -7
@@ -76,7 +76,7 @@ static void tegra186_asrc_lock_stream(struct tegra186_asrc *asrc, 1); } -static int __maybe_unused tegra186_asrc_runtime_suspend (struct device *dev) +static int tegra186_asrc_runtime_suspend (struct device *dev) {struct tegra186_asrc *asrc =dev_get_drvdata (dev);
@@ -86,7 +86,7 @@ static int __maybe_unused tegra186_asrc_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused tegra186_asrc_runtime_resume (struct device *dev) +static int tegra186_asrc_runtime_resume (struct device *dev) {struct tegra186_asrc *asrc =dev_get_drvdata (dev);int id;
@@ -1021,17 +1021,16 @@ static void tegra186_asrc_platform_remove(struct platform_device *pdev) }static const struct dev_pm_ops tegra186_asrc_pm_ops = { - SET_RUNTIME_PM_OPS(tegra186_asrc_runtime_suspend, - tegra186_asrc_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(tegra186_asrc_runtime_suspend, + tegra186_asrc_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct platform_driver tegra186_asrc_driver = { .driver = { .name ="tegra186-asrc" , .of_match_table = tegra186_asrc_of_match, - .pm = &tegra186_asrc_pm_ops, + .pm =pm_ptr (&tegra186_asrc_pm_ops), }, .probe = tegra186_asrc_platform_probe, .remove = tegra186_asrc_platform_remove,
sound/soc/tegra/tegra186_dspk.c +6 -7
@@ -181,7 +181,7 @@ static int tegra186_dspk_put_stereo_to_mono(struct snd_kcontrol *kcontrol,return 1 ; } -static int __maybe_unused tegra186_dspk_runtime_suspend (struct device *dev) +static int tegra186_dspk_runtime_suspend (struct device *dev) {struct tegra186_dspk *dspk =dev_get_drvdata (dev);
@@ -193,7 +193,7 @@ static int __maybe_unused tegra186_dspk_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused tegra186_dspk_runtime_resume (struct device *dev) +static int tegra186_dspk_runtime_resume (struct device *dev) {struct tegra186_dspk *dspk =dev_get_drvdata (dev);int err;
@@ -532,17 +532,16 @@ static void tegra186_dspk_platform_remove(struct platform_device *pdev) }static const struct dev_pm_ops tegra186_dspk_pm_ops = { - SET_RUNTIME_PM_OPS(tegra186_dspk_runtime_suspend, - tegra186_dspk_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(tegra186_dspk_runtime_suspend, + tegra186_dspk_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct platform_driver tegra186_dspk_driver = { .driver = { .name ="tegra186-dspk" , .of_match_table = tegra186_dspk_of_match, - .pm = &tegra186_dspk_pm_ops, + .pm =pm_ptr (&tegra186_dspk_pm_ops), }, .probe = tegra186_dspk_platform_probe, .remove = tegra186_dspk_platform_remove,
Signature · 1 line
2.43.0
PATCH v2 83/88 ASoC: tegra210: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/tegra/tegra210_admaif.c | 13 ++++++------- sound/soc/tegra/tegra210_adx.c | 13 ++++++------- sound/soc/tegra/tegra210_ahub.c | 13 ++++++------- sound/soc/tegra/tegra210_amx.c | 13 ++++++------- sound/soc/tegra/tegra210_dmic.c | 13 ++++++------- sound/soc/tegra/tegra210_i2s.c | 13 ++++++------- sound/soc/tegra/tegra210_mixer.c | 13 ++++++------- sound/soc/tegra/tegra210_mvc.c | 13 ++++++------- sound/soc/tegra/tegra210_ope.c | 13 ++++++------- sound/soc/tegra/tegra210_sfc.c | 13 ++++++------- 10 files changed, 60 insertions(+), 70 deletions(-)
sound/soc/tegra/tegra210_admaif.c +6 -7
@@ -220,7 +220,7 @@ static const struct regmap_config tegra186_admaif_regmap_config = { .cache_type = REGCACHE_FLAT, }; -static int __maybe_unused tegra_admaif_runtime_suspend (struct device *dev) +static int tegra_admaif_runtime_suspend (struct device *dev) {struct tegra_admaif *admaif =dev_get_drvdata (dev);
@@ -230,7 +230,7 @@ static int __maybe_unused tegra_admaif_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused tegra_admaif_runtime_resume (struct device *dev) +static int tegra_admaif_runtime_resume (struct device *dev) {struct tegra_admaif *admaif =dev_get_drvdata (dev);
@@ -877,10 +877,9 @@ static void tegra_admaif_remove(struct platform_device *pdev) }static const struct dev_pm_ops tegra_admaif_pm_ops = { - SET_RUNTIME_PM_OPS(tegra_admaif_runtime_suspend, - tegra_admaif_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(tegra_admaif_runtime_suspend, + tegra_admaif_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct platform_driver tegra_admaif_driver = {
@@ -889,7 +888,7 @@ static struct platform_driver tegra_admaif_driver = { .driver = { .name = "tegra210-admaif", .of_match_table = tegra_admaif_of_match, - .pm = &tegra_admaif_pm_ops, + .pm = pm_ptr(&tegra_admaif_pm_ops), }, };module_platform_driver (tegra_admaif_driver);
sound/soc/tegra/tegra210_adx.c +6 -7
@@ -84,7 +84,7 @@ static int tegra210_adx_startup(struct snd_pcm_substream *substream,return 0 ; } -static int __maybe_unused tegra210_adx_runtime_suspend (struct device *dev) +static int tegra210_adx_runtime_suspend (struct device *dev) {struct tegra210_adx *adx =dev_get_drvdata (dev);
@@ -94,7 +94,7 @@ static int __maybe_unused tegra210_adx_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused tegra210_adx_runtime_resume (struct device *dev) +static int tegra210_adx_runtime_resume (struct device *dev) {struct tegra210_adx *adx =dev_get_drvdata (dev);
@@ -524,17 +524,16 @@ static void tegra210_adx_platform_remove(struct platform_device *pdev) }static const struct dev_pm_ops tegra210_adx_pm_ops = { - SET_RUNTIME_PM_OPS(tegra210_adx_runtime_suspend, - tegra210_adx_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(tegra210_adx_runtime_suspend, + tegra210_adx_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct platform_driver tegra210_adx_driver = { .driver = { .name ="tegra210-adx" , .of_match_table = tegra210_adx_of_match, - .pm = &tegra210_adx_pm_ops, + .pm =pm_ptr (&tegra210_adx_pm_ops), }, .probe = tegra210_adx_platform_probe, .remove = tegra210_adx_platform_remove,
sound/soc/tegra/tegra210_ahub.c +6 -7
@@ -1319,7 +1319,7 @@ static const struct of_device_id tegra_ahub_of_match[] = { };MODULE_DEVICE_TABLE (of, tegra_ahub_of_match); -static int __maybe_unused tegra_ahub_runtime_suspend (struct device *dev) +static int tegra_ahub_runtime_suspend (struct device *dev) {struct tegra_ahub *ahub =dev_get_drvdata (dev);
@@ -1331,7 +1331,7 @@ static int __maybe_unused tegra_ahub_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused tegra_ahub_runtime_resume (struct device *dev) +static int tegra_ahub_runtime_resume (struct device *dev) {struct tegra_ahub *ahub =dev_get_drvdata (dev);int err;
@@ -1408,10 +1408,9 @@ static void tegra_ahub_remove(struct platform_device *pdev) }static const struct dev_pm_ops tegra_ahub_pm_ops = { - SET_RUNTIME_PM_OPS(tegra_ahub_runtime_suspend, - tegra_ahub_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(tegra_ahub_runtime_suspend, + tegra_ahub_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct platform_driver tegra_ahub_driver = {
@@ -1420,7 +1419,7 @@ static struct platform_driver tegra_ahub_driver = { .driver = { .name = "tegra210-ahub", .of_match_table = tegra_ahub_of_match, - .pm = &tegra_ahub_pm_ops, + .pm = pm_ptr(&tegra_ahub_pm_ops), }, };module_platform_driver (tegra_ahub_driver);
sound/soc/tegra/tegra210_amx.c +6 -7
@@ -98,7 +98,7 @@ static int tegra210_amx_startup(struct snd_pcm_substream *substream,return 0 ; } -static int __maybe_unused tegra210_amx_runtime_suspend (struct device *dev) +static int tegra210_amx_runtime_suspend (struct device *dev) {struct tegra210_amx *amx =dev_get_drvdata (dev);
@@ -108,7 +108,7 @@ static int __maybe_unused tegra210_amx_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused tegra210_amx_runtime_resume (struct device *dev) +static int tegra210_amx_runtime_resume (struct device *dev) {struct tegra210_amx *amx =dev_get_drvdata (dev);
@@ -581,17 +581,16 @@ static void tegra210_amx_platform_remove(struct platform_device *pdev) }static const struct dev_pm_ops tegra210_amx_pm_ops = { - SET_RUNTIME_PM_OPS(tegra210_amx_runtime_suspend, - tegra210_amx_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(tegra210_amx_runtime_suspend, + tegra210_amx_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct platform_driver tegra210_amx_driver = { .driver = { .name ="tegra210-amx" , .of_match_table = tegra210_amx_of_match, - .pm = &tegra210_amx_pm_ops, + .pm =pm_ptr (&tegra210_amx_pm_ops), }, .probe = tegra210_amx_platform_probe, .remove = tegra210_amx_platform_remove,
sound/soc/tegra/tegra210_dmic.c +6 -7
@@ -40,7 +40,7 @@ static const struct reg_default tegra210_dmic_reg_defaults[] = { { TEGRA210_DMIC_LP_BIQUAD_1_COEF_4, 0x0 }, }; -static int __maybe_unused tegra210_dmic_runtime_suspend (struct device *dev) +static int tegra210_dmic_runtime_suspend (struct device *dev) {struct tegra210_dmic *dmic =dev_get_drvdata (dev);
@@ -52,7 +52,7 @@ static int __maybe_unused tegra210_dmic_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused tegra210_dmic_runtime_resume (struct device *dev) +static int tegra210_dmic_runtime_resume (struct device *dev) {struct tegra210_dmic *dmic =dev_get_drvdata (dev);int err;
@@ -543,10 +543,9 @@ static void tegra210_dmic_remove(struct platform_device *pdev) }static const struct dev_pm_ops tegra210_dmic_pm_ops = { - SET_RUNTIME_PM_OPS(tegra210_dmic_runtime_suspend, - tegra210_dmic_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(tegra210_dmic_runtime_suspend, + tegra210_dmic_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static const struct of_device_id tegra210_dmic_of_match[] = {
@@ -559,7 +558,7 @@ static struct platform_driver tegra210_dmic_driver = { .driver = { .name = "tegra210-dmic", .of_match_table = tegra210_dmic_of_match, - .pm = &tegra210_dmic_pm_ops, + .pm = pm_ptr(&tegra210_dmic_pm_ops), }, .probe = tegra210_dmic_probe, .remove = tegra210_dmic_remove,
sound/soc/tegra/tegra210_i2s.c +6 -7
@@ -166,7 +166,7 @@ static int tegra210_i2s_init(struct snd_soc_dapm_widget *w,return tegra210_i2s_sw_reset (compnt, stream); } -static int __maybe_unused tegra210_i2s_runtime_suspend (struct device *dev) +static int tegra210_i2s_runtime_suspend (struct device *dev) {struct tegra210_i2s *i2s =dev_get_drvdata (dev);
@@ -178,7 +178,7 @@ static int __maybe_unused tegra210_i2s_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused tegra210_i2s_runtime_resume (struct device *dev) +static int tegra210_i2s_runtime_resume (struct device *dev) {struct tegra210_i2s *i2s =dev_get_drvdata (dev);int err;
@@ -1010,10 +1010,9 @@ static void tegra210_i2s_remove(struct platform_device *pdev) }static const struct dev_pm_ops tegra210_i2s_pm_ops = { - SET_RUNTIME_PM_OPS(tegra210_i2s_runtime_suspend, - tegra210_i2s_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(tegra210_i2s_runtime_suspend, + tegra210_i2s_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static const struct of_device_id tegra210_i2s_of_match[] = {
@@ -1026,7 +1025,7 @@ static struct platform_driver tegra210_i2s_driver = { .driver = { .name = "tegra210-i2s", .of_match_table = tegra210_i2s_of_match, - .pm = &tegra210_i2s_pm_ops, + .pm = pm_ptr(&tegra210_i2s_pm_ops), }, .probe = tegra210_i2s_probe, .remove = tegra210_i2s_remove,
sound/soc/tegra/tegra210_mixer.c +6 -7
@@ -73,7 +73,7 @@ static const struct tegra210_mixer_gain_params gain_params = { { 0, 0, 0x400, 0x8000000 }, }; -static int __maybe_unused tegra210_mixer_runtime_suspend (struct device *dev) +static int tegra210_mixer_runtime_suspend (struct device *dev) {struct tegra210_mixer *mixer =dev_get_drvdata (dev);
@@ -83,7 +83,7 @@ static int __maybe_unused tegra210_mixer_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused tegra210_mixer_runtime_resume (struct device *dev) +static int tegra210_mixer_runtime_resume (struct device *dev) {struct tegra210_mixer *mixer =dev_get_drvdata (dev);
@@ -666,17 +666,16 @@ static void tegra210_mixer_platform_remove(struct platform_device *pdev) }static const struct dev_pm_ops tegra210_mixer_pm_ops = { - SET_RUNTIME_PM_OPS(tegra210_mixer_runtime_suspend, - tegra210_mixer_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(tegra210_mixer_runtime_suspend, + tegra210_mixer_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct platform_driver tegra210_mixer_driver = { .driver = { .name ="tegra210_mixer" , .of_match_table = tegra210_mixer_of_match, - .pm = &tegra210_mixer_pm_ops, + .pm =pm_ptr (&tegra210_mixer_pm_ops), }, .probe = tegra210_mixer_platform_probe, .remove = tegra210_mixer_platform_remove,
sound/soc/tegra/tegra210_mvc.c +6 -7
@@ -47,7 +47,7 @@ static const struct tegra210_mvc_gain_params gain_params = { .duration_inv = 14316558, }; -static int __maybe_unused tegra210_mvc_runtime_suspend (struct device *dev) +static int tegra210_mvc_runtime_suspend (struct device *dev) {struct tegra210_mvc *mvc =dev_get_drvdata (dev);
@@ -59,7 +59,7 @@ static int __maybe_unused tegra210_mvc_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused tegra210_mvc_runtime_resume (struct device *dev) +static int tegra210_mvc_runtime_resume (struct device *dev) {struct tegra210_mvc *mvc =dev_get_drvdata (dev);
@@ -758,17 +758,16 @@ static void tegra210_mvc_platform_remove(struct platform_device *pdev) }static const struct dev_pm_ops tegra210_mvc_pm_ops = { - SET_RUNTIME_PM_OPS(tegra210_mvc_runtime_suspend, - tegra210_mvc_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(tegra210_mvc_runtime_suspend, + tegra210_mvc_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct platform_driver tegra210_mvc_driver = { .driver = { .name ="tegra210-mvc" , .of_match_table = tegra210_mvc_of_match, - .pm = &tegra210_mvc_pm_ops, + .pm =pm_ptr (&tegra210_mvc_pm_ops), }, .probe = tegra210_mvc_platform_probe, .remove = tegra210_mvc_platform_remove,
sound/soc/tegra/tegra210_ope.c +6 -7
@@ -356,7 +356,7 @@ static void tegra210_ope_remove(struct platform_device *pdev)pm_runtime_disable (&pdev->dev); } -static int __maybe_unused tegra210_ope_runtime_suspend (struct device *dev) +static int tegra210_ope_runtime_suspend (struct device *dev) {struct tegra210_ope *ope =dev_get_drvdata (dev);
@@ -374,7 +374,7 @@ static int __maybe_unused tegra210_ope_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused tegra210_ope_runtime_resume (struct device *dev) +static int tegra210_ope_runtime_resume (struct device *dev) {struct tegra210_ope *ope =dev_get_drvdata (dev);
@@ -393,10 +393,9 @@ static int __maybe_unused tegra210_ope_runtime_resume(struct device *dev) }static const struct dev_pm_ops tegra210_ope_pm_ops = { - SET_RUNTIME_PM_OPS(tegra210_ope_runtime_suspend, - tegra210_ope_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(tegra210_ope_runtime_suspend, + tegra210_ope_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static const struct of_device_id tegra210_ope_of_match[] = {
@@ -409,7 +408,7 @@ static struct platform_driver tegra210_ope_driver = { .driver = { .name = "tegra210-ope", .of_match_table = tegra210_ope_of_match, - .pm = &tegra210_ope_pm_ops, + .pm = pm_ptr(&tegra210_ope_pm_ops), }, .probe = tegra210_ope_probe, .remove = tegra210_ope_remove,
sound/soc/tegra/tegra210_sfc.c +6 -7
@@ -3056,7 +3056,7 @@ static s32 *coef_addr_table[TEGRA210_SFC_NUM_RATES][TEGRA210_SFC_NUM_RATES] = { }, }; -static int __maybe_unused tegra210_sfc_runtime_suspend (struct device *dev) +static int tegra210_sfc_runtime_suspend (struct device *dev) {struct tegra210_sfc *sfc =dev_get_drvdata (dev);
@@ -3066,7 +3066,7 @@ static int __maybe_unused tegra210_sfc_runtime_suspend(struct device *dev)return 0 ; } -static int __maybe_unused tegra210_sfc_runtime_resume (struct device *dev) +static int tegra210_sfc_runtime_resume (struct device *dev) {struct tegra210_sfc *sfc =dev_get_drvdata (dev);
@@ -3623,17 +3623,16 @@ static void tegra210_sfc_platform_remove(struct platform_device *pdev) }static const struct dev_pm_ops tegra210_sfc_pm_ops = { - SET_RUNTIME_PM_OPS(tegra210_sfc_runtime_suspend, - tegra210_sfc_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(tegra210_sfc_runtime_suspend, + tegra210_sfc_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct platform_driver tegra210_sfc_driver = { .driver = { .name ="tegra210-sfc" , .of_match_table = tegra210_sfc_of_match, - .pm = &tegra210_sfc_pm_ops, + .pm =pm_ptr (&tegra210_sfc_pm_ops), }, .probe = tegra210_sfc_platform_probe, .remove = tegra210_sfc_platform_remove,
Signature · 1 line
2.43.0
PATCH v2 84/88 ASoC: tegra20: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/tegra/tegra20_i2s.c | 13 ++++++------- sound/soc/tegra/tegra20_spdif.c | 13 ++++++------- 2 files changed, 12 insertions(+), 14 deletions(-)
sound/soc/tegra/tegra20_i2s.c +6 -7
@@ -34,7 +34,7 @@#define DRV_NAME "tegra20-i2s" -static __maybe_unused int tegra20_i2s_runtime_suspend (struct device *dev) +static int tegra20_i2s_runtime_suspend (struct device *dev) {struct tegra20_i2s *i2s =dev_get_drvdata (dev);
@@ -45,7 +45,7 @@ static __maybe_unused int tegra20_i2s_runtime_suspend(struct device *dev)return 0 ; } -static __maybe_unused int tegra20_i2s_runtime_resume (struct device *dev) +static int tegra20_i2s_runtime_resume (struct device *dev) {struct tegra20_i2s *i2s =dev_get_drvdata (dev);int ret;
@@ -487,17 +487,16 @@ static const struct of_device_id tegra20_i2s_of_match[] = { };static const struct dev_pm_ops tegra20_i2s_pm_ops = { - SET_RUNTIME_PM_OPS(tegra20_i2s_runtime_suspend, - tegra20_i2s_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(tegra20_i2s_runtime_suspend, + tegra20_i2s_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct platform_driver tegra20_i2s_driver = { .driver = { .name =DRV_NAME , .of_match_table = tegra20_i2s_of_match, - .pm = &tegra20_i2s_pm_ops, + .pm =pm_ptr (&tegra20_i2s_pm_ops), }, .probe = tegra20_i2s_platform_probe, .remove = tegra20_i2s_platform_remove,
sound/soc/tegra/tegra20_spdif.c +6 -7
@@ -25,7 +25,7 @@#include "tegra20_spdif.h" -static __maybe_unused int tegra20_spdif_runtime_suspend (struct device *dev) +static int tegra20_spdif_runtime_suspend (struct device *dev) {struct tegra20_spdif *spdif =dev_get_drvdata (dev);
@@ -36,7 +36,7 @@ static __maybe_unused int tegra20_spdif_runtime_suspend(struct device *dev)return 0 ; } -static __maybe_unused int tegra20_spdif_runtime_resume (struct device *dev) +static int tegra20_spdif_runtime_resume (struct device *dev) {struct tegra20_spdif *spdif =dev_get_drvdata (dev);int ret;
@@ -403,10 +403,9 @@ static int tegra20_spdif_platform_probe(struct platform_device *pdev) }static const struct dev_pm_ops tegra20_spdif_pm_ops = { - SET_RUNTIME_PM_OPS(tegra20_spdif_runtime_suspend, - tegra20_spdif_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(tegra20_spdif_runtime_suspend, + tegra20_spdif_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static const struct of_device_id tegra20_spdif_of_match[] = {
@@ -418,7 +417,7 @@ MODULE_DEVICE_TABLE(of, tegra20_spdif_of_match);static struct platform_driver tegra20_spdif_driver = { .driver = { .name ="tegra20-spdif" , - .pm = &tegra20_spdif_pm_ops, + .pm =pm_ptr (&tegra20_spdif_pm_ops), .of_match_table = tegra20_spdif_of_match, }, .probe = tegra20_spdif_platform_probe,
Signature · 1 line
2.43.0
PATCH v2 85/88 ASoC: tegra30: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/tegra/tegra30_ahub.c | 13 ++++++------- sound/soc/tegra/tegra30_i2s.c | 13 ++++++------- 2 files changed, 12 insertions(+), 14 deletions(-)
sound/soc/tegra/tegra30_ahub.c +6 -7
@@ -40,7 +40,7 @@ static inline void tegra30_audio_write(u32 reg, u32 val)regmap_write (ahub->regmap_ahub, reg, val); } -static __maybe_unused int tegra30_ahub_runtime_suspend (struct device *dev) +static int tegra30_ahub_runtime_suspend (struct device *dev) {regcache_cache_only (ahub->regmap_apbif, true);regcache_cache_only (ahub->regmap_ahub, true);
@@ -61,7 +61,7 @@ static __maybe_unused int tegra30_ahub_runtime_suspend(struct device *dev)* stopping streams should dynamically adjust the clock as required. However, * this is not yet implemented. */ -static __maybe_unused int tegra30_ahub_runtime_resume (struct device *dev) +static int tegra30_ahub_runtime_resume (struct device *dev) {int ret;
@@ -600,10 +600,9 @@ static void tegra30_ahub_remove(struct platform_device *pdev) }static const struct dev_pm_ops tegra30_ahub_pm_ops = { - SET_RUNTIME_PM_OPS(tegra30_ahub_runtime_suspend, - tegra30_ahub_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(tegra30_ahub_runtime_suspend, + tegra30_ahub_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct platform_driver tegra30_ahub_driver = {
@@ -612,7 +611,7 @@ static struct platform_driver tegra30_ahub_driver = { .driver = { .name = DRV_NAME, .of_match_table = tegra30_ahub_of_match, - .pm = &tegra30_ahub_pm_ops, + .pm = pm_ptr(&tegra30_ahub_pm_ops), }, };module_platform_driver (tegra30_ahub_driver);
sound/soc/tegra/tegra30_i2s.c +6 -7
@@ -35,7 +35,7 @@#define DRV_NAME "tegra30-i2s" -static __maybe_unused int tegra30_i2s_runtime_suspend (struct device *dev) +static int tegra30_i2s_runtime_suspend (struct device *dev) {struct tegra30_i2s *i2s =dev_get_drvdata (dev);
@@ -46,7 +46,7 @@ static __maybe_unused int tegra30_i2s_runtime_suspend(struct device *dev)return 0 ; } -static __maybe_unused int tegra30_i2s_runtime_resume (struct device *dev) +static int tegra30_i2s_runtime_resume (struct device *dev) {struct tegra30_i2s *i2s =dev_get_drvdata (dev);int ret;
@@ -547,17 +547,16 @@ static void tegra30_i2s_platform_remove(struct platform_device *pdev) }static const struct dev_pm_ops tegra30_i2s_pm_ops = { - SET_RUNTIME_PM_OPS(tegra30_i2s_runtime_suspend, - tegra30_i2s_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, - pm_runtime_force_resume) + RUNTIME_PM_OPS(tegra30_i2s_runtime_suspend, + tegra30_i2s_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static struct platform_driver tegra30_i2s_driver = { .driver = { .name =DRV_NAME , .of_match_table = tegra30_i2s_of_match, - .pm = &tegra30_i2s_pm_ops, + .pm =pm_ptr (&tegra30_i2s_pm_ops), }, .probe = tegra30_i2s_platform_probe, .remove = tegra30_i2s_platform_remove,
Signature · 1 line
2.43.0
PATCH v2 86/88 ASoC: xtensa: Convert to RUNTIME_PM_OPS()
In reply to Takashi IwaiUse the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr().
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/xtensa/xtfpga-i2s.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/xtensa/xtfpga-i2s.c +3 -3
@@ -629,8 +629,8 @@ MODULE_DEVICE_TABLE(of, xtfpga_i2s_of_match);#endif static const struct dev_pm_ops xtfpga_i2s_pm_ops = { -SET_RUNTIME_PM_OPS (xtfpga_i2s_runtime_suspend, - xtfpga_i2s_runtime_resume,NULL ) +RUNTIME_PM_OPS (xtfpga_i2s_runtime_suspend, + xtfpga_i2s_runtime_resume,NULL ) };static struct platform_driver xtfpga_i2s_driver = {
@@ -639,7 +639,7 @@ static struct platform_driver xtfpga_i2s_driver = { .driver = { .name = "xtfpga-i2s", .of_match_table = of_match_ptr(xtfpga_i2s_of_match), - .pm = &xtfpga_i2s_pm_ops, + .pm = pm_ptr(&xtfpga_i2s_pm_ops), }, };
Signature · 1 line
2.43.0
PATCH v2 87/88 ASoC: amd: Convert to RUNTIME_PM_OPS() & co
In reply to Takashi IwaiUse 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.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/amd/acp/acp-pci.c | 10 +++++----- sound/soc/amd/acp/acp-rembrandt.c | 6 +++--- sound/soc/amd/acp/acp-renoir.c | 6 +++--- sound/soc/amd/acp/acp63.c | 6 +++--- sound/soc/amd/acp/acp70.c | 6 +++--- sound/soc/amd/ps/pci-ps.c | 12 ++++++------ sound/soc/amd/ps/ps-pdm-dma.c | 12 ++++++------ sound/soc/amd/ps/ps-sdw-dma.c | 6 +++--- sound/soc/amd/rpl/rpl-pci-acp6x.c | 10 +++++----- sound/soc/amd/vangogh/acp5x-pcm-dma.c | 11 +++++------ sound/soc/amd/yc/acp6x-pdm-dma.c | 12 ++++++------ sound/soc/amd/yc/pci-acp6x.c | 10 +++++----- 12 files changed, 53 insertions(+), 54 deletions(-)
sound/soc/amd/acp/acp-pci.c +5 -5
@@ -221,7 +221,7 @@ static int acp_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_idreturn ret; }; -static int __maybe_unused snd_acp_suspend (struct device *dev) +static int snd_acp_suspend (struct device *dev) {struct acp_chip_info *chip;int ret;
@@ -233,7 +233,7 @@ static int __maybe_unused snd_acp_suspend(struct device *dev)return ret; } -static int __maybe_unused snd_acp_resume (struct device *dev) +static int snd_acp_resume (struct device *dev) {struct acp_chip_info *chip;int ret;
@@ -251,8 +251,8 @@ static int __maybe_unused snd_acp_resume(struct device *dev) }static const struct dev_pm_ops acp_pm_ops = { - SET_RUNTIME_PM_OPS(snd_acp_suspend, snd_acp_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (snd_acp_suspend, snd_acp_resume) + RUNTIME_PM_OPS(snd_acp_suspend, snd_acp_resume, NULL) +SYSTEM_SLEEP_PM_OPS (snd_acp_suspend, snd_acp_resume) };static void acp_pci_remove (struct pci_dev *pci)
@@ -289,7 +289,7 @@ static struct pci_driver snd_amd_acp_pci_driver = { .probe = acp_pci_probe, .remove = acp_pci_remove, .driver = { - .pm = &acp_pm_ops, + .pm = pm_ptr(&acp_pm_ops), }, };module_pci_driver (snd_amd_acp_pci_driver);
sound/soc/amd/acp/acp-rembrandt.c +3 -3
@@ -197,7 +197,7 @@ static void rembrandt_audio_remove(struct platform_device *pdev)pm_runtime_disable (&pdev->dev); } -static int __maybe_unused rmb_pcm_resume (struct device *dev) +static int rmb_pcm_resume (struct device *dev) {struct acp_chip_info *chip =dev_get_platdata (dev);struct acp_stream *stream;
@@ -227,7 +227,7 @@ static int __maybe_unused rmb_pcm_resume(struct device *dev) }static const struct dev_pm_ops rmb_dma_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (NULL , rmb_pcm_resume) +SYSTEM_SLEEP_PM_OPS (NULL , rmb_pcm_resume) };static struct platform_driver rembrandt_driver = {
@@ -235,7 +235,7 @@ static struct platform_driver rembrandt_driver = { .remove = rembrandt_audio_remove, .driver = { .name = "acp_asoc_rembrandt", - .pm = &rmb_dma_pm_ops, + .pm = pm_ptr(&rmb_dma_pm_ops), }, };
sound/soc/amd/acp/acp-renoir.c +3 -3
@@ -144,7 +144,7 @@ static void renoir_audio_remove(struct platform_device *pdev)acp_platform_unregister (dev); } -static int __maybe_unused rn_pcm_resume (struct device *dev) +static int rn_pcm_resume (struct device *dev) {struct acp_chip_info *chip =dev_get_platdata (dev);struct acp_stream *stream;
@@ -171,7 +171,7 @@ static int __maybe_unused rn_pcm_resume(struct device *dev) }static const struct dev_pm_ops rn_dma_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (NULL , rn_pcm_resume) +SYSTEM_SLEEP_PM_OPS (NULL , rn_pcm_resume) };static struct platform_driver renoir_driver = {
@@ -179,7 +179,7 @@ static struct platform_driver renoir_driver = { .remove = renoir_audio_remove, .driver = { .name = "acp_asoc_renoir", - .pm = &rn_dma_pm_ops, + .pm = pm_ptr(&rn_dma_pm_ops), }, };
sound/soc/amd/acp/acp63.c +3 -3
@@ -248,7 +248,7 @@ static void acp63_audio_remove(struct platform_device *pdev)pm_runtime_disable (&pdev->dev); } -static int __maybe_unused acp63_pcm_resume (struct device *dev) +static int acp63_pcm_resume (struct device *dev) {struct acp_chip_info *chip =dev_get_platdata (dev);struct acp_stream *stream;
@@ -278,7 +278,7 @@ static int __maybe_unused acp63_pcm_resume(struct device *dev) }static const struct dev_pm_ops acp63_dma_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (NULL , acp63_pcm_resume) +SYSTEM_SLEEP_PM_OPS (NULL , acp63_pcm_resume) };static struct platform_driver acp63_driver = {
@@ -286,7 +286,7 @@ static struct platform_driver acp63_driver = { .remove = acp63_audio_remove, .driver = { .name = "acp_asoc_acp63", - .pm = &acp63_dma_pm_ops, + .pm = pm_ptr(&acp63_dma_pm_ops), }, };
sound/soc/amd/acp/acp70.c +3 -3
@@ -180,7 +180,7 @@ static void acp_acp70_audio_remove(struct platform_device *pdev)pm_runtime_disable (&pdev->dev); } -static int __maybe_unused acp70_pcm_resume (struct device *dev) +static int acp70_pcm_resume (struct device *dev) {struct acp_chip_info *chip =dev_get_platdata (dev);struct acp_stream *stream;
@@ -207,7 +207,7 @@ static int __maybe_unused acp70_pcm_resume(struct device *dev) }static const struct dev_pm_ops acp70_dma_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (NULL , acp70_pcm_resume) +SYSTEM_SLEEP_PM_OPS (NULL , acp70_pcm_resume) };static struct platform_driver acp70_driver = {
@@ -215,7 +215,7 @@ static struct platform_driver acp70_driver = { .remove = acp_acp70_audio_remove, .driver = { .name = "acp_asoc_acp70", - .pm = &acp70_dma_pm_ops, + .pm = pm_ptr(&acp70_dma_pm_ops), }, };
sound/soc/amd/ps/pci-ps.c +6 -6
@@ -668,24 +668,24 @@ static int snd_acp63_probe(struct pci_dev *pci,return ret; } -static int __maybe_unused snd_acp_suspend (struct device *dev) +static int snd_acp_suspend (struct device *dev) {return acp_hw_suspend (dev); } -static int __maybe_unused snd_acp_runtime_resume (struct device *dev) +static int snd_acp_runtime_resume (struct device *dev) {return acp_hw_runtime_resume (dev); } -static int __maybe_unused snd_acp_resume (struct device *dev) +static int snd_acp_resume (struct device *dev) {return acp_hw_resume (dev); }static const struct dev_pm_ops acp63_pm_ops = { - SET_RUNTIME_PM_OPS(snd_acp_suspend, snd_acp_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (snd_acp_suspend, snd_acp_resume) + RUNTIME_PM_OPS(snd_acp_suspend, snd_acp_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (snd_acp_suspend, snd_acp_resume) };static void snd_acp63_remove (struct pci_dev *pci)
@@ -727,7 +727,7 @@ static struct pci_driver ps_acp63_driver = { .probe = snd_acp63_probe, .remove = snd_acp63_remove, .driver = { - .pm = &acp63_pm_ops, + .pm = pm_ptr(&acp63_pm_ops), } };
sound/soc/amd/ps/ps-pdm-dma.c +6 -6
@@ -402,7 +402,7 @@ static void acp63_pdm_audio_remove(struct platform_device *pdev)pm_runtime_disable (&pdev->dev); } -static int __maybe_unused acp63_pdm_resume (struct device *dev) +static int acp63_pdm_resume (struct device *dev) {struct pdm_dev_data *adata;struct snd_pcm_runtime *runtime;
@@ -423,7 +423,7 @@ static int __maybe_unused acp63_pdm_resume(struct device *dev)return 0 ; } -static int __maybe_unused acp63_pdm_suspend (struct device *dev) +static int acp63_pdm_suspend (struct device *dev) {struct pdm_dev_data *adata;
@@ -432,7 +432,7 @@ static int __maybe_unused acp63_pdm_suspend(struct device *dev)return 0 ; } -static int __maybe_unused acp63_pdm_runtime_resume (struct device *dev) +static int acp63_pdm_runtime_resume (struct device *dev) {struct pdm_dev_data *adata;
@@ -442,8 +442,8 @@ static int __maybe_unused acp63_pdm_runtime_resume(struct device *dev) }static const struct dev_pm_ops acp63_pdm_pm_ops = { - SET_RUNTIME_PM_OPS(acp63_pdm_suspend, acp63_pdm_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (acp63_pdm_suspend, acp63_pdm_resume) + RUNTIME_PM_OPS(acp63_pdm_suspend, acp63_pdm_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (acp63_pdm_suspend, acp63_pdm_resume) };static struct platform_driver acp63_pdm_dma_driver = {
@@ -451,7 +451,7 @@ static struct platform_driver acp63_pdm_dma_driver = { .remove = acp63_pdm_audio_remove, .driver = { .name = "acp_ps_pdm_dma", - .pm = &acp63_pdm_pm_ops, + .pm = pm_ptr(&acp63_pdm_pm_ops), }, };
sound/soc/amd/ps/ps-sdw-dma.c +3 -3
@@ -767,7 +767,7 @@ static int acp70_restore_sdw_dma_config(struct sdw_dma_dev_data *sdw_data)return 0 ; } -static int __maybe_unused acp63_sdw_pcm_resume (struct device *dev) +static int acp63_sdw_pcm_resume (struct device *dev) {struct sdw_dma_dev_data *sdw_data;
@@ -779,7 +779,7 @@ static int __maybe_unused acp63_sdw_pcm_resume(struct device *dev) }static const struct dev_pm_ops acp63_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (NULL , acp63_sdw_pcm_resume) +SYSTEM_SLEEP_PM_OPS (NULL , acp63_sdw_pcm_resume) };static struct platform_driver acp63_sdw_dma_driver = {
@@ -787,7 +787,7 @@ static struct platform_driver acp63_sdw_dma_driver = { .remove = acp63_sdw_platform_remove, .driver = { .name = "amd_ps_sdw_dma", - .pm = &acp63_pm_ops, + .pm = pm_ptr(&acp63_pm_ops), }, };
sound/soc/amd/rpl/rpl-pci-acp6x.c +5 -5
@@ -159,7 +159,7 @@ static int snd_rpl_probe(struct pci_dev *pci,return ret; } -static int __maybe_unused snd_rpl_suspend (struct device *dev) +static int snd_rpl_suspend (struct device *dev) {struct rpl_dev_data *adata;int ret;
@@ -171,7 +171,7 @@ static int __maybe_unused snd_rpl_suspend(struct device *dev)return ret; } -static int __maybe_unused snd_rpl_resume (struct device *dev) +static int snd_rpl_resume (struct device *dev) {struct rpl_dev_data *adata;int ret;
@@ -184,8 +184,8 @@ static int __maybe_unused snd_rpl_resume(struct device *dev) }static const struct dev_pm_ops rpl_pm = { - SET_RUNTIME_PM_OPS(snd_rpl_suspend, snd_rpl_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (snd_rpl_suspend, snd_rpl_resume) + RUNTIME_PM_OPS(snd_rpl_suspend, snd_rpl_resume, NULL) +SYSTEM_SLEEP_PM_OPS (snd_rpl_suspend, snd_rpl_resume) };static void snd_rpl_remove (struct pci_dev *pci)
@@ -217,7 +217,7 @@ static struct pci_driver rpl_acp6x_driver = { .probe = snd_rpl_probe, .remove = snd_rpl_remove, .driver = { - .pm = &rpl_pm, + .pm = pm_ptr(&rpl_pm), } };
sound/soc/amd/vangogh/acp5x-pcm-dma.c +5 -6
@@ -420,7 +420,7 @@ static void acp5x_audio_remove(struct platform_device *pdev)pm_runtime_disable (&pdev->dev); } -static int __maybe_unused acp5x_pcm_resume (struct device *dev) +static int acp5x_pcm_resume (struct device *dev) {struct i2s_dev_data *adata;struct i2s_stream_instance *rtd;
@@ -473,7 +473,7 @@ static int __maybe_unused acp5x_pcm_resume(struct device *dev)return 0 ; } -static int __maybe_unused acp5x_pcm_suspend (struct device *dev) +static int acp5x_pcm_suspend (struct device *dev) {struct i2s_dev_data *adata;
@@ -482,7 +482,7 @@ static int __maybe_unused acp5x_pcm_suspend(struct device *dev)return 0 ; } -static int __maybe_unused acp5x_pcm_runtime_resume (struct device *dev) +static int acp5x_pcm_runtime_resume (struct device *dev) {struct i2s_dev_data *adata;
@@ -492,9 +492,8 @@ static int __maybe_unused acp5x_pcm_runtime_resume(struct device *dev) }static const struct dev_pm_ops acp5x_pm_ops = { - SET_RUNTIME_PM_OPS(acp5x_pcm_suspend, - acp5x_pcm_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (acp5x_pcm_suspend, acp5x_pcm_resume) + RUNTIME_PM_OPS(acp5x_pcm_suspend, acp5x_pcm_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (acp5x_pcm_suspend, acp5x_pcm_resume) };static struct platform_driver acp5x_dma_driver = {
sound/soc/amd/yc/acp6x-pdm-dma.c +6 -6
@@ -394,7 +394,7 @@ static void acp6x_pdm_audio_remove(struct platform_device *pdev)pm_runtime_disable (&pdev->dev); } -static int __maybe_unused acp6x_pdm_resume (struct device *dev) +static int acp6x_pdm_resume (struct device *dev) {struct pdm_dev_data *adata;struct snd_pcm_runtime *runtime;
@@ -415,7 +415,7 @@ static int __maybe_unused acp6x_pdm_resume(struct device *dev)return 0 ; } -static int __maybe_unused acp6x_pdm_suspend (struct device *dev) +static int acp6x_pdm_suspend (struct device *dev) {struct pdm_dev_data *adata;
@@ -424,7 +424,7 @@ static int __maybe_unused acp6x_pdm_suspend(struct device *dev)return 0 ; } -static int __maybe_unused acp6x_pdm_runtime_resume (struct device *dev) +static int acp6x_pdm_runtime_resume (struct device *dev) {struct pdm_dev_data *adata;
@@ -434,8 +434,8 @@ static int __maybe_unused acp6x_pdm_runtime_resume(struct device *dev) }static const struct dev_pm_ops acp6x_pdm_pm_ops = { - SET_RUNTIME_PM_OPS(acp6x_pdm_suspend, acp6x_pdm_runtime_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (acp6x_pdm_suspend, acp6x_pdm_resume) + RUNTIME_PM_OPS(acp6x_pdm_suspend, acp6x_pdm_runtime_resume, NULL) +SYSTEM_SLEEP_PM_OPS (acp6x_pdm_suspend, acp6x_pdm_resume) };static struct platform_driver acp6x_pdm_dma_driver = {
@@ -443,7 +443,7 @@ static struct platform_driver acp6x_pdm_dma_driver = { .remove = acp6x_pdm_audio_remove, .driver = { .name = "acp_yc_pdm_dma", - .pm = &acp6x_pdm_pm_ops, + .pm = pm_ptr(&acp6x_pdm_pm_ops), }, };
sound/soc/amd/yc/pci-acp6x.c +5 -5
@@ -277,7 +277,7 @@ static int snd_acp6x_probe(struct pci_dev *pci,return ret; } -static int __maybe_unused snd_acp6x_suspend (struct device *dev) +static int snd_acp6x_suspend (struct device *dev) {struct acp6x_dev_data *adata;int ret;
@@ -289,7 +289,7 @@ static int __maybe_unused snd_acp6x_suspend(struct device *dev)return ret; } -static int __maybe_unused snd_acp6x_resume (struct device *dev) +static int snd_acp6x_resume (struct device *dev) {struct acp6x_dev_data *adata;int ret;
@@ -302,8 +302,8 @@ static int __maybe_unused snd_acp6x_resume(struct device *dev) }static const struct dev_pm_ops acp6x_pm = { - SET_RUNTIME_PM_OPS(snd_acp6x_suspend, snd_acp6x_resume, NULL) -SET_SYSTEM_SLEEP_PM_OPS (snd_acp6x_suspend, snd_acp6x_resume) + RUNTIME_PM_OPS(snd_acp6x_suspend, snd_acp6x_resume, NULL) +SYSTEM_SLEEP_PM_OPS (snd_acp6x_suspend, snd_acp6x_resume) };static void snd_acp6x_remove (struct pci_dev *pci)
@@ -339,7 +339,7 @@ static struct pci_driver yc_acp6x_driver = { .probe = snd_acp6x_probe, .remove = snd_acp6x_remove, .driver = { - .pm = &acp6x_pm, + .pm = pm_ptr(&acp6x_pm), } };
Signature · 1 line
2.43.0
PATCH v2 88/88 ASoC: pcm3168a: Convert to EXPORT_GPL_DEV_PM_OPS()
In reply to Takashi IwaiUse the newer EXPORT_GPL_DEV_PM_OPS() macro together with pm_ptr(), which allows us to drop superfluous CONFIG_PM ifdefs.
This optimizes slightly when CONFIG_PM is disabled, too.
--- sound/soc/codecs/pcm3168a-i2c.c | 2 +- sound/soc/codecs/pcm3168a-spi.c | 2 +- sound/soc/codecs/pcm3168a.c | 7 ++----- 3 files changed, 4 insertions(+), 7 deletions(-)
sound/soc/codecs/pcm3168a-i2c.c +1 -1
@@ -59,7 +59,7 @@ static struct i2c_driver pcm3168a_i2c_driver = { .name = "pcm3168a", .acpi_match_table = pcm3168a_acpi_match, .of_match_table = pcm3168a_of_match, - .pm = &pcm3168a_pm_ops, + .pm = pm_ptr(&pcm3168a_pm_ops), }, };module_i2c_driver (pcm3168a_i2c_driver);
sound/soc/codecs/pcm3168a-spi.c +1 -1
@@ -50,7 +50,7 @@ static struct spi_driver pcm3168a_spi_driver = { .driver = { .name = "pcm3168a", .of_match_table = pcm3168a_of_match, - .pm = &pcm3168a_pm_ops, + .pm = pm_ptr(&pcm3168a_pm_ops), }, };module_spi_driver (pcm3168a_spi_driver);
sound/soc/codecs/pcm3168a.c +2 -5
@@ -849,7 +849,6 @@ void pcm3168a_remove(struct device *dev) }EXPORT_SYMBOL_GPL (pcm3168a_remove); -#ifdef CONFIG_PM static int pcm3168a_rt_resume (struct device *dev) {struct pcm3168a_priv *pcm3168a =dev_get_drvdata (dev);
@@ -905,12 +904,10 @@ static int pcm3168a_rt_suspend(struct device *dev)return 0 ; } -#endif -const struct dev_pm_ops pcm3168a_pm_ops = { -SET_RUNTIME_PM_OPS (pcm3168a_rt_suspend, pcm3168a_rt_resume,NULL ) +EXPORT_GPL_DEV_PM_OPS (pcm3168a_pm_ops) = { +RUNTIME_PM_OPS (pcm3168a_rt_suspend, pcm3168a_rt_resume,NULL ) }; -EXPORT_SYMBOL_GPL (pcm3168a_pm_ops);MODULE_DESCRIPTION ("PCM3168A codec driver" );MODULE_AUTHOR ("Damien Horsley <[email protected]>" );
Signature · 1 line
2.43.0
Mark Brown
maintainerQuoted 8 lines · Takashi Iwai
This is a revised series of small and trivial patches to convert to the newer PM macros, e.g. from
SET_RUNTIME_PM_OPS()toRUNTIME_PM_OPS().The conversions are systematic, and we could reduce messy
__maybe_unusedand ifdefs with those changes.[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[01/88] ASoC: au1x: Convert to DEFINE_SIMPLE_DEV_PM_OPS()
commit: 958448bfee503d24e706605f01b98d3ce547d1bd
[02/88] ASoC: ak4375: Convert to RUNTIME_PM_OPS() & co
commit: 5f3aeb44694fbd6ebc8790cfcf157f2f7f072207
[03/88] ASoC: ak4458: Convert to RUNTIME_PM_OPS() & co
commit: 9f9c8e9064ea8ceb13540a283f08550c097bb673
[04/88] ASoC: ak5558: Convert to RUNTIME_PM_OPS() & co
commit: 5ef209dcdc3fe8f9661a80af4c8ed7a2326c9206
[05/88] ASoC: cs35l32: Convert to RUNTIME_PM_OPS()
commit: 5b73cae57a02ff461c260e68193ce973062cc0bb
[06/88] ASoC: cs35l33: Convert to RUNTIME_PM_OPS()
commit: 7d1d8f90e456e2945cd3a1a4a429fdb634ec6f42
[07/88] ASoC: cs35l34: Convert to RUNTIME_PM_OPS()
commit: 1d6128f56c01a417ee3c9d80b4c205da6399d661
[08/88] ASoC: cs4234: Convert to RUNTIME_PM_OPS()
commit: fd24b93ebaa1be78bf683a6a0599856eda367155
[09/88] ASoC: cs42l42: Convert to RUNTIME_PM_OPS() & co
commit: 227b132349825b52ded464e71271751aceb4b4c9
[10/88] ASoC: cs42l51: Convert to SYSTEM_SLEEP_PM_OPS()
commit: 92104ed88e7c2f1a10cb72f5372107136738c2c9
[11/88] ASoC: cs42l83: Convert to SYSTEM_SLEEP_PM_OPS()
commit: 850910df7a5ce514f4b4d4d7ba4020abf9254b6d
[12/88] ASoC: cs42xx8: Convert to EXPORT_GPL_DEV_PM_OPS()
commit: 7b7e2292e0ba84515e62147a47b79e1f81f47b1c
[13/88] ASoC: cs43130: Convert to RUNTIME_PM_OPS()
commit: 9a1d4a56565161a8bbf5b2a9d92665010303aeac
[14/88] ASoC: cs4349: Convert to RUNTIME_PM_OPS()
commit: 2492a736dd8959b8860ca7f7afcd395314c9c436
[15/88] ASoC: cs53l30: Convert to RUNTIME_PM_OPS()
commit: 646443af4452793090d34da2c70d5ed126f174bd
[16/88] ASoC: cx2072x: Convert to RUNTIME_PM_OPS() & co
commit: 81f150d4b96d73feecda475f500f460565344255
[17/88] ASoC: da7213: Convert to RUNTIME_PM_OPS() & co
commit: 948cf1681e2ee077969df1e672f4c4d856059937
[18/88] ASoC: hdac_hdmi: Convert to RUNTIME_PM_OPS() & co
commit: 218b32ca6c63db19ba0f4ad4fe83dc7c18e21bcb
[19/88] ASoC: lpass: Convert to RUNTIME_PM_OPS()
commit: efd74b16af66d3ab2e65a68d6ff171ae2b4ecf21
[20/88] ASoC: max98090: Convert to RUNTIME_PM_OPS() & co
commit: f744bcb575f7e25d871532e731398b99de32953d
[21/88] ASoC: max98373: Convert to RUNTIME_PM_OPS() & co
commit: db001865fdbc6ee446660a06f00437fbb72cfe9c
[22/88] ASoC: max98390: Convert to SYSTEM_SLEEP_PM_OPS()
commit: 69b638e8d4347113183496684de5f3ac2a1db4b6
[23/88] ASoC: max98396: Convert to SYSTEM_SLEEP_PM_OPS()
commit: c009893bc5864d55b0b0cc349413a0eaa2bc17cc
[24/88] ASoC: max98520: Convert to SYSTEM_SLEEP_PM_OPS()
commit: b352343e448c45940116dc4a089a288fd820dee9
[25/88] ASoC: max9860: Convert to RUNTIME_PM_OPS()
commit: d0029e0a78672932367478e5b3479edfa2738ec0
[26/88] ASoC: max98927: Convert to SYSTEM_SLEEP_PM_OPS()
commit: 113d29a94410ff292be090949c43911b11c4d32a
[27/88] ASoC: mt6660: Convert to RUNTIME_PM_OPS()
commit: aa912611c43006e628d14e9319402a77ab0bf97c
[28/88] ASoC: pcm512x: Convert to EXPORT_GPL_DEV_PM_OPS()
commit: 85e8d0f37879f8761dbd137dbdad720fbe7929ca
[29/88] ASoC: rt1017-sdca-sdw: Convert to RUNTIME_PM_OPS() & co
commit: b83ab4fb2c6e7c15f769653118243b0974f4c885
[30/88] ASoC: rt1308-sdw: Convert to RUNTIME_PM_OPS() & co
commit: 7130c4302b9229dda655235321c34bd5e6dde82e
[31/88] ASoC: rt1316-sdw: Convert to RUNTIME_PM_OPS() & co
commit: dfe8999a4f5ca8f8c67751310d0421e1bfbbae6d
[32/88] ASoC: rt1318-sdw: Convert to RUNTIME_PM_OPS() & co
commit: d0bb681f8e9a418e396e6b471866197ecc30bd00
[33/88] ASoC: rt1320-sdw: Convert to RUNTIME_PM_OPS() & co
commit: 3eedadf3d7049e3ab2c49cf7f444e8f296327ba0
[34/88] ASoC: rt5514: Convert to SYSTEM_SLEEP_PM_OPS()
commit: fdf698fa3ff22e504505a7c32f9671c5fbbd5513
[35/88] ASoC: rt5645: Convert to SYSTEM_SLEEP_PM_OPS()
commit: 71ba303a04ed5b314c88ed0c2eb771cf1df5d215
[36/88] ASoC: rt5682-sdw: Convert to RUNTIME_PM_OPS() & co
commit: ef57148d2cea0c267504642eaff36da3df953496
[37/88] ASoC: rt700-sdw: Convert to RUNTIME_PM_OPS() & co
commit: 569f75535df2d2cdc5197033c9955bedcd2f50e6
[38/88] ASoC: rt711: Convert to RUNTIME_PM_OPS() & co
commit: 98cdea5b7acd06e7b188ce40c7450a6240d1d0a8
[39/88] ASoC: rt712: Convert to RUNTIME_PM_OPS() & co
commit: e4efc3694d8ab8cd7c0f230556d8457ad8d34899
[40/88] ASoC: rt715: Convert to RUNTIME_PM_OPS() & co
commit: a83d01d19ef285f279331ffb7d4c6f9a37201c15
[41/88] ASoC: rt721: Convert to RUNTIME_PM_OPS() & co
commit: 8798eaedd6d756ea58832e222840b2e387707ede
[42/88] ASoC: rt722: Convert to RUNTIME_PM_OPS() & co
commit: 957e8cb375e60699c7acf52c771fad5979cef359
[43/88] ASoC: rt9120: Convert to RUNTIME_PM_OPS()
commit: 9aaa57d36f387df01762ced4e362bcb89872d80b
[44/88] ASoC: rtq9128: Convert to RUNTIME_PM_OPS()
commit: 9eb264d115a55eb40b55c7481c113e6c56560700
[45/88] ASoC: tas2552: Convert to RUNTIME_PM_OPS()
commit: 1570c33f2f38b6dff04ee1c7d7b38d1702e81b5f
[46/88] ASoC: ts3a227e: Convert to SYSTEM_SLEEP_PM_OPS()
commit: 2db8e2c7c6f9cccfdcb1c710b9b3008b73eb5505
[47/88] ASoC: wcd937x: Convert to RUNTIME_PM_OPS()
commit: 40a3111b8f18640885ad2041d52dc1d429cf60b1
[48/88] ASoC: wcd938x: Convert to RUNTIME_PM_OPS()
commit: a0f0a8814ab4167992f958e804051ea4791b8603
[49/88] ASoC: wcd939x: Convert to RUNTIME_PM_OPS()
commit: 6714a569c839c658f882b2f38bbe430a8778f261
[50/88] ASoC: wm2200: Convert to RUNTIME_PM_OPS()
commit: 208a479d039202681f1b80a5ccbb2c72a494b55b
[51/88] ASoC: wm5100: Convert to RUNTIME_PM_OPS()
commit: adcb5d32f7318b21d2a94d9542307801cb5e08c0
[52/88] ASoC: wm8804: Convert to EXPORT_GPL_DEV_PM_OPS()
commit: 30200e61f8b8a72cf87f7ccd407c54049288f7be
[53/88] ASoC: wm8962: Convert to RUNTIME_PM_OPS() & co
commit: 327e7dd45cea34e7a1334fcc35b9e122c05b181f
[54/88] ASoC: wm8994: Convert to SYSTEM_SLEEP_PM_OPS()
commit: ae5ad50b9fead07c8336a606ac36fbca9c73790d
[55/88] ASoC: wsa881x: Convert to RUNTIME_PM_OPS()
commit: 6fb2ff498d5a2a06998e1bd61b0954fd71e6d718
[56/88] ASoC: wsa883x: Convert to RUNTIME_PM_OPS()
commit: d09125c2c68cc95c300e2a63a04b9a3d37ba64ad
[57/88] ASoC: wsa884x: Convert to RUNTIME_PM_OPS()
commit: 60c1c181139e2ebe138faafa4f5e4e695236c1f0
[58/88] ASoC: dwc: Convert to RUNTIME_PM_OPS()
commit: fc12699cda764ea807db0b22db7f06d1acbabe8e
[59/88] ASoC: fsl: Convert to RUNTIME_PM_OPS() and co
commit: d1baa8193fd8cb8d0088851b468c9b0c5874ff42
[60/88] ASoC: img: Convert to RUNTIME_PM_OPS() and co
commit: 5580e82d222668dd0a484af5612f1d9ae938f075
[61/88] ASoC: intel: avs: Convert to RUNTIME_PM_OPS()
commit: 72954863350eff04a4961acb49bfce11416f7856
[62/88] ASoC: intel: catpt: Convert to RUNTIME_PM_OPS() & co
commit: 2c498d9a3a5ad28d2cfbdffde8496626f1b89c82
[63/88] ASoC: mediatek: mt2701: Convert to RUNTIME_PM_OPS()
commit: 50ffa9e4d22db71ce370a8cde3bd2d706138df8b
[64/88] ASoC: mediatek: mt6797: Convert to RUNTIME_PM_OPS()
commit: 6afabcdad370f117588dfd7203a803f050503c91
[65/88] ASoC: mediatek: mt7986: Convert to RUNTIME_PM_OPS()
commit: 0d7c63bc74a8fdcfc37e093efaeb8657b0e21022
[66/88] ASoC: mediatek: mt8173: Convert to RUNTIME_PM_OPS()
commit: 09b926f215df0206f1f3d8f4a2b4f4e28c68168e
[67/88] ASoC: mediatek: mt8183: Convert to RUNTIME_PM_OPS()
commit: 564cb5ebb488a11708e63eb7cd8037accea7120d
[68/88] ASoC: mediatek: mt8186: Convert to RUNTIME_PM_OPS()
commit: 26d342b04f5e9190487cd2e6fdce75c52cee4a86
[69/88] ASoC: mediatek: mt8188: Convert to RUNTIME_PM_OPS()
commit: 49a70f2ed0a2a65aaf099dc45d73ba6b4f0c9c94
[70/88] ASoC: mediatek: mt8192: Convert to RUNTIME_PM_OPS()
commit: ecd140a2063d618e1239351d3ae146cfdaa9a13f
[71/88] ASoC: mediatek: mt8195: Convert to RUNTIME_PM_OPS()
commit: 951f082eb09b50d68b8271257777f206ee3001a8
[72/88] ASoC: mediatek: mt8365: Convert to RUNTIME_PM_OPS() & co
commit: bd8540105e88581bdf27a9a92231907a9168d0b6
[73/88] ASoC: qcom: Convert to SYSTEM_SLEEP_PM_OPS()
commit: 23a6b07ceff59eabb45543091416951711f0963e
[74/88] ASoC: rcar: Convert to SYSTEM_SLEEP_PM_OPS()
commit: 4330d33f04ea71c9cfb193a0ae60fb40f6080a19
[75/88] ASoC: rockchip: Convert to RUNTIME_PM_OPS() & co
commit: 43a2930348040b3a7ad3b809e211dea233267f28
[76/88] ASoC: samsung: Convert to RUNTIME_PM_OPS() & co
commit: 692fc8ac774adb9ac86b607b9c8a59b4ddc53484
[77/88] ASoC: SOF: acpi: Convert to EXPORT_NS_DEV_PM_OPS()
commit: 40456c8e7b9401d76363aebaae71763072b2e281
[78/88] ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS()
commit: 24df03e2b43c8a66c0f235320177f7199dca47a9
[79/88] ASoC: SOF: of: Convert to EXPORT_DEV_PM_OPS()
commit: f8d952c5f77fb8c2791d0978a2f4d6c72965cbe0
[80/88] ASoC: stm: Convert to SYSTEM_SLEEP_PM_OPS()
commit: 7369a2d95878f427959980539549d0eb9ec4958c
[81/88] ASoC: sunxi: Convert to RUNTIME_PM_OPS()
commit: 723b690723287c39b386dbf8dad8834c4acbc0ef
[82/88] ASoC: tegra186: Convert to RUNTIME_PM_OPS() & co
commit: 5f6e34c575b86becafbee0051b2eb47145b5af57
[83/88] ASoC: tegra210: Convert to RUNTIME_PM_OPS() & co
commit: 083c6a6f79e724ff89394d6ab900028a2e99ff7b
[84/88] ASoC: tegra20: Convert to RUNTIME_PM_OPS() & co
commit: b7055fc11dc66f5dda6ffc0d88d7ede09970b244
[85/88] ASoC: tegra30: Convert to RUNTIME_PM_OPS() & co
commit: 212f5c4f1d45ffe43e52edc175f294426aba8ee7
[86/88] ASoC: xtensa: Convert to RUNTIME_PM_OPS()
commit: c7ef05c0061acf505523133986adc47086265d99
[87/88] ASoC: amd: Convert to RUNTIME_PM_OPS() & co
commit: 5f86b16c49a9d156a459c7e9e3ebcbbe9439953c
[88/88] ASoC: pcm3168a: Convert to EXPORT_GPL_DEV_PM_OPS()
commit: 15559cdeb9be5a0fe528cdc3f8b759a27ea8f943All 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