Skip to content

Commit

Permalink
usbip: change dev_attr_group to constant
Browse files Browse the repository at this point in the history
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: Márton Németh <nm127@freemail.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Márton Németh authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent 0a186be commit cf77acf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/usbip/vhci.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct vhci_hcd {
};

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)

/* vhci_hcd.c */
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/usbip/vhci_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,6 @@ static struct attribute *dev_attrs[] = {
NULL,
};

struct attribute_group dev_attr_group = {
const struct attribute_group dev_attr_group = {
.attrs = dev_attrs,
};

0 comments on commit cf77acf

Please sign in to comment.