Skip to content

Commit

Permalink
ASoC: Constify dev_pm_ops variables
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Mark Brown committed Jul 17, 2015
1 parent d770e55 commit 42d1b8c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm5100.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm8962.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};

Expand Down

0 comments on commit 42d1b8c

Please sign in to comment.