usbip: change dev_attr_group to constant
authorMárton Németh <nm127@freemail.hu>
Mon, 30 May 2011 19:50:26 +0000 (21:50 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 21:29:56 +0000 (14:29 -0700)
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>
drivers/staging/usbip/vhci.h
drivers/staging/usbip/vhci_sysfs.c

index 3a1bacb4e2283d0ca85ba9b01192b9770a12d9d3..71a586e00fd7a0325c0175599d723f0a656becdc 100644 (file)
@@ -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 */
index ecd52b6c731d1a865a340a41b2ad3378a3871161..0cd039bb5fd65c1b0f04fab024a2a83bd0c6b326 100644 (file)
@@ -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,
 };
This page took 0.025764 seconds and 5 git commands to generate.