diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-04 15:06:38 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-10 21:31:28 +0300 |
commit | a351a2bf9cb12b969e9e4bfb620268b3efff8723 (patch) | |
tree | 05eae15b9dcadff34cc85c667a3e8f02598dd8ae /drivers/usb/chipidea | |
parent | a70df9641f95d6d1893e6f37d95f967d35e249cd (diff) | |
download | linux-a351a2bf9cb12b969e9e4bfb620268b3efff8723.tar.xz |
usb: chipidea: 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/chipidea')
-rw-r--r-- | drivers/usb/chipidea/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index b17ed3a9a304..1ef3ae4dc908 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -887,7 +887,7 @@ static struct attribute *ci_attrs[] = { NULL, }; -static struct attribute_group ci_attr_group = { +static const struct attribute_group ci_attr_group = { .attrs = ci_attrs, }; |