Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50b918c5 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Wolfram Sang
Browse files

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: default avatarBhumika Goyal <bhumirks@gmail.com>
Acked-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent a4f64ae2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
};