diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-21 14:43:09 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-09-06 11:57:18 +0300 |
commit | ad8378ede6f933cd6fe0c4c12ec65a3db469b2ca (patch) | |
tree | c83ff2b5b0e2e4cd2874a1fa134c29fababf67f8 /drivers/hid/hid-core.c | |
parent | b42a362e6d10c342004b183defcb9940331b6737 (diff) | |
download | linux-ad8378ede6f933cd6fe0c4c12ec65a3db469b2ca.tar.xz |
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>
Diffstat (limited to 'drivers/hid/hid-core.c')
-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 = { .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, }; |