Commit cf77acfc authored by Márton Németh's avatar Márton Németh Committed by Greg Kroah-Hartman

usbip: change dev_attr_group to constant

The dev_attr_group variable is never changed and it is only passed
to the second parameter of sysfs_create_group() and sysfs_remove_group() functions.
These functions are defined in linux/sysfs.h: the second parameter is a pointer to
const in both cases.
Signed-off-by: default avatarMárton Németh <nm127@freemail.hu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0a186be3
...@@ -96,7 +96,7 @@ struct vhci_hcd { ...@@ -96,7 +96,7 @@ struct vhci_hcd {
}; };
extern struct vhci_hcd *the_controller; extern struct vhci_hcd *the_controller;
extern struct attribute_group dev_attr_group; extern const struct attribute_group dev_attr_group;
#define hardware (&the_controller->pdev.dev) #define hardware (&the_controller->pdev.dev)
/* vhci_hcd.c */ /* vhci_hcd.c */
......
...@@ -239,6 +239,6 @@ static struct attribute *dev_attrs[] = { ...@@ -239,6 +239,6 @@ static struct attribute *dev_attrs[] = {
NULL, NULL,
}; };
struct attribute_group dev_attr_group = { const struct attribute_group dev_attr_group = {
.attrs = dev_attrs, .attrs = dev_attrs,
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment