ASoC: fsi: constify dev_pm_ops structure
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 17 Jul 2017 02:12:21 +0000 (21:12 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 17 Jul 2017 14:16:16 +0000 (15:16 +0100)
This dev_pm_ops structure is only stored in the pm field of a
device_driver structure. This field is declared const, so
dev_pm_ops structures that have this property can be declared
as const also.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/fsi.c

index 7c4bdd82bb955bbbd35d5c78f5bd780da4ef7178..005b2150655668bb5160b0337ae30017951b2cda 100644 (file)
@@ -2109,7 +2109,7 @@ static int fsi_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops fsi_pm_ops = {
+static const struct dev_pm_ops fsi_pm_ops = {
        .suspend                = fsi_suspend,
        .resume                 = fsi_resume,
 };