summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-04 15:06:38 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-10 21:31:28 +0300
commita351a2bf9cb12b969e9e4bfb620268b3efff8723 (patch)
tree05eae15b9dcadff34cc85c667a3e8f02598dd8ae
parenta70df9641f95d6d1893e6f37d95f967d35e249cd (diff)
downloadlinux-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>
-rw-r--r--drivers/usb/chipidea/core.c2
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,
};