diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-04 08:06:46 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-10 14:31:27 -0400 |
commit | 65b881fb4e04d6c4e8edf68699e42f2c0b46df91 (patch) | |
tree | 5b400d0031d27c6f390360778bdb4b2de674cd07 /drivers/usb/wusbcore/dev-sysfs.c | |
parent | 4b51425730cc3daacf4f909b0da371fc0c86245e (diff) |
usb: wusbcore: dev-sysfs: 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 <arvind.yadav.cs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/wusbcore/dev-sysfs.c')
-rw-r--r-- | drivers/usb/wusbcore/dev-sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/wusbcore/dev-sysfs.c b/drivers/usb/wusbcore/dev-sysfs.c index d4de56b93d68..78212f8180ce 100644 --- a/drivers/usb/wusbcore/dev-sysfs.c +++ b/drivers/usb/wusbcore/dev-sysfs.c | |||
@@ -114,7 +114,7 @@ static struct attribute *wusb_dev_attrs[] = { | |||
114 | NULL, | 114 | NULL, |
115 | }; | 115 | }; |
116 | 116 | ||
117 | static struct attribute_group wusb_dev_attr_group = { | 117 | static const struct attribute_group wusb_dev_attr_group = { |
118 | .name = NULL, /* we want them in the same directory */ | 118 | .name = NULL, /* we want them in the same directory */ |
119 | .attrs = wusb_dev_attrs, | 119 | .attrs = wusb_dev_attrs, |
120 | }; | 120 | }; |