diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-03 07:26:43 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-08-03 07:38:29 -0400 |
commit | 9182fb98d64baad43a5721c7617cbf91a89279dd (patch) | |
tree | 72545e19b2b7006933131d6bfcb79f5e1bf633ab | |
parent | a9d0683e0b62b46c7a5d0ebd8f642d8f9a4b7b32 (diff) |
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 <arvind.yadav.cs@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | drivers/hid/hid-multitouch.c | 2 |
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[] = { | |||
341 | NULL | 341 | NULL |
342 | }; | 342 | }; |
343 | 343 | ||
344 | static struct attribute_group mt_attribute_group = { | 344 | static const struct attribute_group mt_attribute_group = { |
345 | .attrs = sysfs_attrs | 345 | .attrs = sysfs_attrs |
346 | }; | 346 | }; |
347 | 347 | ||