Re: [PATCH] staging: ccree: constify dev_pm_ops structures.

From: Greg KH
Date: Thu Jun 29 2017 - 10:17:57 EST


On Thu, Jun 29, 2017 at 03:00:28PM +0530, Arvind Yadav wrote:
> dev_pm_ops are not supposed to change at runtime. All functions
> working with dev_pm_ops provided by <linux/device.h> work with const
> dev_pm_ops. So mark the non-const structs as const.
>
> File size before:
> text data bss dec hex filename
> 3800 488 0 4288 10c0 drivers/staging/ccree/ssi_driver.o
>
> File size After adding 'const':
> text data bss dec hex filename
> 4010 288 0 4298 10ca drivers/staging/ccree/ssi_driver.o
>
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@xxxxxxxxx>
> ---
> drivers/staging/ccree/ssi_driver.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

No longer applies to my staging-testing branch at all due to other
changes happening there. Please rebase and resend.

thanks,

greg k-h