summaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-21 17:13:09 +0530
committerJiri Kosina <jkosina@suse.cz>2017-09-06 10:57:18 +0200
commitad8378ede6f933cd6fe0c4c12ec65a3db469b2ca (patch)
treec83ff2b5b0e2e4cd2874a1fa134c29fababf67f8 /drivers/hid
parentb42a362e6d10c342004b183defcb9940331b6737 (diff)
downloadop-kernel-dev-ad8378ede6f933cd6fe0c4c12ec65a3db469b2ca.zip
op-kernel-dev-ad8378ede6f933cd6fe0c4c12ec65a3db469b2ca.tar.gz
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')
-rw-r--r--drivers/hid/hid-core.c2
1 files changed, 1 insertions, 1 deletions
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,
};
OpenPOWER on IntegriCloud