i2c: omap: constify dev_pm_ops structures
authorBhumika Goyal <bhumirks@gmail.com>
Sun, 15 Jan 2017 09:59:41 +0000 (15:29 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 25 Jan 2017 21:17:24 +0000 (22:17 +0100)
Declare dev_pm_ops structures as const as they are only stored in the pm
field of a device_driver structure. This field is of type const, so
dev_pm_ops structures having similar properties can be declared const
too.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-omap.c

index c7da0c4..1ebb5e9 100644 (file)
@@ -1504,7 +1504,7 @@ static int omap_i2c_runtime_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops omap_i2c_pm_ops = {
+static const struct dev_pm_ops omap_i2c_pm_ops = {
        SET_RUNTIME_PM_OPS(omap_i2c_runtime_suspend,
                           omap_i2c_runtime_resume, NULL)
 };