Skip to content

Commit 35a33cb

Browse files
ArvindYadavCsJiri Kosina
authored andcommitted
HID: logitech-hidpp: 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 58ee3e0 commit 35a33cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-logitech-hidpp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2926,7 +2926,7 @@ static struct attribute *sysfs_attrs[] = {
29262926
NULL
29272927
};
29282928

2929-
static struct attribute_group ps_attribute_group = {
2929+
static const struct attribute_group ps_attribute_group = {
29302930
.attrs = sysfs_attrs
29312931
};
29322932

0 commit comments

Comments
 (0)