mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 23:53:55 +08:00
ASoC: Constify dev_pm_ops variables
The dev_pm_ops variables are not modified after initialization in these drivers, so make them const. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
d770e558e2
commit
42d1b8ce29
@ -2481,7 +2481,7 @@ static int wm2200_runtime_resume(struct device *dev)
|
||||
}
|
||||
#endif
|
||||
|
||||
static struct dev_pm_ops wm2200_pm = {
|
||||
static const struct dev_pm_ops wm2200_pm = {
|
||||
SET_RUNTIME_PM_OPS(wm2200_runtime_suspend, wm2200_runtime_resume,
|
||||
NULL)
|
||||
};
|
||||
|
@ -2708,7 +2708,7 @@ static int wm5100_runtime_resume(struct device *dev)
|
||||
}
|
||||
#endif
|
||||
|
||||
static struct dev_pm_ops wm5100_pm = {
|
||||
static const struct dev_pm_ops wm5100_pm = {
|
||||
SET_RUNTIME_PM_OPS(wm5100_runtime_suspend, wm5100_runtime_resume,
|
||||
NULL)
|
||||
};
|
||||
|
@ -3859,7 +3859,7 @@ static int wm8962_runtime_suspend(struct device *dev)
|
||||
}
|
||||
#endif
|
||||
|
||||
static struct dev_pm_ops wm8962_pm = {
|
||||
static const struct dev_pm_ops wm8962_pm = {
|
||||
SET_RUNTIME_PM_OPS(wm8962_runtime_suspend, wm8962_runtime_resume, NULL)
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user