Skip to content

Commit 9182fb9

Browse files
ArvindYadavCsJiri Kosina
authored andcommitted
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]>
1 parent a9d0683 commit 9182fb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-multitouch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ static struct attribute *sysfs_attrs[] = {
341341
NULL
342342
};
343343

344-
static struct attribute_group mt_attribute_group = {
344+
static const struct attribute_group mt_attribute_group = {
345345
.attrs = sysfs_attrs
346346
};
347347

0 commit comments

Comments
 (0)