From: Arvind Yadav Date: Fri, 4 Aug 2017 12:06:42 +0000 (+0530) Subject: usb: usbsevseg: constify attribute_group structures. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cc122789e4508348c5833729ff4360eef89c7827;p=linux.git usb: usbsevseg: constify attribute_group structures. attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/misc/usbsevseg.c b/drivers/usb/misc/usbsevseg.c index 388fae6373db4..3f6a28045b538 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, };