diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-04 14:06:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-10 20:31:27 +0200 |
commit | cc122789e4508348c5833729ff4360eef89c7827 (patch) | |
tree | 4e68903d18f1639de16e26981ac33109e46c2642 /drivers/usb | |
parent | usb: hcd: constify attribute_group structures. (diff) | |
download | linux-cc122789e4508348c5833729ff4360eef89c7827.tar.xz linux-cc122789e4508348c5833729ff4360eef89c7827.zip |
usb: usbsevseg: 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')
-rw-r--r-- | drivers/usb/misc/usbsevseg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/usbsevseg.c b/drivers/usb/misc/usbsevseg.c index 388fae6373db..3f6a28045b53 100644 --- a/drivers/usb/misc/usbsevseg.c +++ b/drivers/usb/misc/usbsevseg.c @@ -330,7 +330,7 @@ static struct attribute *dev_attrs[] = { NULL }; -static struct attribute_group dev_attr_grp = { +static const struct attribute_group dev_attr_grp = { .attrs = dev_attrs, }; |