Skip to content

Commit 2edb048

Browse files
ArvindYadavCsFelipe Balbi
authored andcommitted
usb: phy-mv-usb: 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: Felipe Balbi <[email protected]>
1 parent f367b72 commit 2edb048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/phy/phy-mv-usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ static struct attribute *inputs_attrs[] = {
650650
NULL,
651651
};
652652

653-
static struct attribute_group inputs_attr_group = {
653+
static const struct attribute_group inputs_attr_group = {
654654
.name = "inputs",
655655
.attrs = inputs_attrs,
656656
};

0 commit comments

Comments
 (0)