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

Commit 2d29b397 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by David S. Miller
Browse files

qlcnic: add const to bin_attribute structure



Add const to bin_attribute structure as it is only passed to the
functions sysfs_{remove/create}_bin_file. The corresponding
arguments are of type const, so declare the structure to be const.

Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 840df162
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1248,7 +1248,7 @@ static const struct bin_attribute bin_attr_pm_config = {
	.write = qlcnic_sysfs_write_pm_config,
	.write = qlcnic_sysfs_write_pm_config,
};
};


static struct bin_attribute bin_attr_flash = {
static const struct bin_attribute bin_attr_flash = {
	.attr = {.name = "flash", .mode = (S_IRUGO | S_IWUSR)},
	.attr = {.name = "flash", .mode = (S_IRUGO | S_IWUSR)},
	.size = 0,
	.size = 0,
	.read = qlcnic_83xx_sysfs_flash_read_handler,
	.read = qlcnic_83xx_sysfs_flash_read_handler,