From: Bhumika Goyal Date: Mon, 21 Aug 2017 11:43:09 +0000 (+0530) Subject: HID: make device_attribute const X-Git-Tag: v4.19~2198^2~2^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad8378ede6f933cd6fe0c4c12ec65a3db469b2ca;p=platform%2Fkernel%2Flinux-rpi.git 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: Bhumika Goyal Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 9bc9116..24e929c 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -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, };