diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-21 07:43:09 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-09-06 04:57:18 -0400 |
commit | ad8378ede6f933cd6fe0c4c12ec65a3db469b2ca (patch) | |
tree | c83ff2b5b0e2e4cd2874a1fa134c29fababf67f8 | |
parent | b42a362e6d10c342004b183defcb9940331b6737 (diff) |
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 <bhumirks@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | drivers/hid/hid-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 9bc91160819b..24e929cbf0e8 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 = { | |||
1662 | .size = HID_MAX_DESCRIPTOR_SIZE, | 1662 | .size = HID_MAX_DESCRIPTOR_SIZE, |
1663 | }; | 1663 | }; |
1664 | 1664 | ||
1665 | static struct device_attribute dev_attr_country = { | 1665 | static const struct device_attribute dev_attr_country = { |
1666 | .attr = { .name = "country", .mode = 0444 }, | 1666 | .attr = { .name = "country", .mode = 0444 }, |
1667 | .show = show_country, | 1667 | .show = show_country, |
1668 | }; | 1668 | }; |