Re: [PATCH] i2c: busses: constify dev_pm_ops structures

From: Wolfram Sang
Date: Wed Jan 25 2017 - 16:04:05 EST


On Sun, Jan 15, 2017 at 03:29:41PM +0530, Bhumika Goyal wrote:
> 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.
>
> File size before: drivers/i2c/busses/i2c-omap.o
> text data bss dec hex filename
> 6814 584 0 7398 1ce6 drivers/i2c/busses/i2c-omap.o
>
> File size after: drivers/i2c/busses/i2c-omap.o
> text data bss dec hex filename
> 7006 392 0 7398 1ce6 drivers/i2c/busses/i2c-omap.o
>
> Signed-off-by: Bhumika Goyal <bhumirks@xxxxxxxxx>

Applied to for-next, thanks! I dropped the file size table from the
commit message, though. For me, it is clear enough without it.

Attachment: signature.asc
Description: PGP signature