Skip to content

Commit 1d710da

Browse files
ArvindYadavCsJiri Kosina
authored andcommitted
HID: ntrig: 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 35a33cb commit 1d710da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-ntrig.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ static struct attribute *sysfs_attrs[] = {
445445
NULL
446446
};
447447

448-
static struct attribute_group ntrig_attribute_group = {
448+
static const struct attribute_group ntrig_attribute_group = {
449449
.attrs = sysfs_attrs
450450
};
451451

0 commit comments

Comments
 (0)