Re: powerpc: add const to bin_attribute structures

2017-08-18 Thread Michael Ellerman
On Wed, 2017-08-02 at 18:07:38 UTC, Bhumika Goyal wrote: > Declare bin_attribute structures as const as they are only passed as an > argument to the function sysfs_create_bin_file. This argument is of > type const, so declare the structure as const. > > Signed-off-by: Bhumika Goyal Applied to po

[PATCH] powerpc: add const to bin_attribute structures

2017-08-02 Thread Bhumika Goyal
Declare bin_attribute structures as const as they are only passed as an argument to the function sysfs_create_bin_file. This argument is of type const, so declare the structure as const. Signed-off-by: Bhumika Goyal --- arch/powerpc/platforms/powernv/opal-flash.c | 2 +- arch/powerpc/sysdev/mv64