From: Bhumika Goyal Date: Sun, 15 Jan 2017 09:59:41 +0000 (+0530) Subject: i2c: omap: constify dev_pm_ops structures X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=50b918c5a6ffad1d9fae29c4fdcb52383b123665;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git i2c: omap: constify dev_pm_ops structures 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 Acked-by: Tony Lindgren Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index c7da0c42baee..1ebb5e947e0b 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -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) };