mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2025-04-19 20:58:31 +09:00
ASoC: Convert to modern PM macros
Merge series from Takashi Iwai <tiwai@suse.de>: 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.
This commit is contained in:
commit
ebfbcfc7b9
@ -221,7 +221,7 @@ disable_pci:
|
||||
return 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);
|
||||
|
@ -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),
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -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),
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -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),
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -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),
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -668,24 +668,24 @@ disable_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),
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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),
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -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),
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -159,7 +159,7 @@ disable_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),
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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 = {
|
||||
|
@ -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),
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -277,7 +277,7 @@ disable_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),
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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 @@ err:
|
||||
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,
|
||||
|
||||
},
|
||||
|
@ -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 @@ err:
|
||||
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,
|
||||
|
||||
},
|
||||
|
@ -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,
|
||||
|
@ -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),
|
||||
},
|
||||
|
@ -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 *cs
|
||||
return 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,
|
||||
|
@ -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 = {
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -606,7 +606,6 @@ err_enable:
|
||||
}
|
||||
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.");
|
||||
|
@ -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 @@ err:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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 @@ err_npl:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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 @@ err_npl:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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,
|
||||
|
@ -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 @@ err_npl:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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),
|
||||
},
|
||||
|
@ -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,
|
||||
|
@ -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 @@ regmap_sync:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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),
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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 <Damien.Horsley@imgtec.com>");
|
||||
|
@ -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),
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -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),
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -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 <broonie@kernel.org>");
|
||||
|
@ -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 @@ regmap_sync:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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 @@ regmap_sync:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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 @@ regmap_sync:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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 @@ regmap_sync:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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 @@ regmap_sync:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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 @@ regmap_sync:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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 @@ regmap_sync:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -380,7 +380,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);
|
||||
|
||||
@ -396,7 +396,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);
|
||||
@ -428,7 +428,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);
|
||||
@ -467,14 +467,14 @@ regmap_sync:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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 @@ regmap_sync:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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 @@ regmap_sync:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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 @@ regmap_sync:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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 @@ regmap_sync:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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 @@ regmap_sync:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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 @@ regmap_sync:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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 @@ regmap_sync:
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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,
|
||||
|
@ -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[] = {
|
||||
|
@ -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,
|
||||
|
@ -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),
|
||||
},
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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),
|
||||
},
|
||||
|
@ -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,
|
||||
|
@ -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 <dp@opensource.wolfsonmicro.com>");
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
@ -1636,7 +1636,7 @@ err:
|
||||
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -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,
|
||||
|
@ -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),
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -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 = {
|
||||
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
@ -1817,10 +1817,8 @@ disable_bus_clk:
|
||||
}
|
||||
|
||||
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,
|
||||
},
|
||||
};
|
||||
|
@ -1821,8 +1821,7 @@ stop_ipg_clk:
|
||||
|
||||
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 = {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user