Skip to content

Commit 6cea144

Browse files
ArvindYadavCsFelipe Balbi
authored andcommitted
usb: phy-tahvo: 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 2edb048 commit 6cea144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/phy/phy-tahvo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ static struct attribute *tahvo_attributes[] = {
326326
NULL
327327
};
328328

329-
static struct attribute_group tahvo_attr_group = {
329+
static const struct attribute_group tahvo_attr_group = {
330330
.attrs = tahvo_attributes,
331331
};
332332

0 commit comments

Comments
 (0)