diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-04 08:06:38 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-10 14:31:28 -0400 |
commit | a351a2bf9cb12b969e9e4bfb620268b3efff8723 (patch) | |
tree | 05eae15b9dcadff34cc85c667a3e8f02598dd8ae /drivers/usb/chipidea/core.c | |
parent | a70df9641f95d6d1893e6f37d95f967d35e249cd (diff) |
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/core.c')
-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[] = { | |||
887 | NULL, | 887 | NULL, |
888 | }; | 888 | }; |
889 | 889 | ||
890 | static struct attribute_group ci_attr_group = { | 890 | static const struct attribute_group ci_attr_group = { |
891 | .attrs = ci_attrs, | 891 | .attrs = ci_attrs, |
892 | }; | 892 | }; |
893 | 893 | ||