aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <[email protected]>2017-08-03 11:26:43 +0000
committerJiri Kosina <[email protected]>2017-08-03 11:38:29 +0000
commit9182fb98d64baad43a5721c7617cbf91a89279dd (patch)
tree72545e19b2b7006933131d6bfcb79f5e1bf633ab
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jik... (diff)
downloadkernel-9182fb98d64baad43a5721c7617cbf91a89279dd.tar.gz
kernel-9182fb98d64baad43a5721c7617cbf91a89279dd.zip
HID: multitouch: constify attribute_group structures.
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by <linux/sysfs.h> work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
-rw-r--r--drivers/hid/hid-multitouch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
index aff20f4b6d97..e8acf93e6597 100644
--- a/drivers/hid/hid-multitouch.c
+++ b/drivers/hid/hid-multitouch.c
@@ -341,7 +341,7 @@ static struct attribute *sysfs_attrs[] = {
NULL
};
-static struct attribute_group mt_attribute_group = {
+static const struct attribute_group mt_attribute_group = {
.attrs = sysfs_attrs
};