From: Arvind Yadav Date: Fri, 4 Aug 2017 12:06:46 +0000 (+0530) Subject: usb: wusbcore: dev-sysfs: constify attribute_group structures. X-Git-Tag: v5.15~10536^2~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65b881fb4e04d6c4e8edf68699e42f2c0b46df91;p=platform%2Fkernel%2Flinux-starfive.git 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 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/wusbcore/dev-sysfs.c b/drivers/usb/wusbcore/dev-sysfs.c index d4de56b..78212f8 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[] = { NULL, }; -static struct attribute_group wusb_dev_attr_group = { +static const struct attribute_group wusb_dev_attr_group = { .name = NULL, /* we want them in the same directory */ .attrs = wusb_dev_attrs, };