diff options
author | 2017-08-04 17:36:42 +0530 | |
---|---|---|
committer | 2017-08-10 11:31:27 -0700 | |
commit | cc122789e4508348c5833729ff4360eef89c7827 (patch) | |
tree | 4e68903d18f1639de16e26981ac33109e46c2642 /drivers/usb/misc | |
parent | usb: hcd: constify attribute_group structures. (diff) | |
download | linux-cc122789e4508348c5833729ff4360eef89c7827.tar.gz linux-cc122789e4508348c5833729ff4360eef89c7827.tar.bz2 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/misc')
-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, }; |