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

Commit ad8378ed authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Jiri Kosina
Browse files

HID: make device_attribute const



Make this const as it is only passed as an argument to the function
device_create_file and device_remove_file and the corresponding arguments are
of type const.  Done using Coccinelle

Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent b42a362e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1662,7 +1662,7 @@ static struct bin_attribute dev_bin_attr_report_desc = {
	.size = HID_MAX_DESCRIPTOR_SIZE,
};

static struct device_attribute dev_attr_country = {
static const struct device_attribute dev_attr_country = {
	.attr = { .name = "country", .mode = 0444 },
	.show = show_country,
};