Re: [PATCH] qlogic: qlcnic_sysfs: constify bin_attribute structures

From: David Miller
Date: Wed Feb 22 2017 - 15:40:20 EST


From: Bhumika Goyal <bhumirks@xxxxxxxxx>
Date: Wed, 22 Feb 2017 00:11:17 +0530

> Declare bin_attribute structures as const as they are only passed as an
> arguments to the functions device_remove_bin_file and
> device_create_bin_file. These function arguments are of type const, so
> bin_attribute structures having this property can be made const too.
> Done using Coccinelle:
...
> Signed-off-by: Bhumika Goyal <bhumirks@xxxxxxxxx>

Applied.