aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/core.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-04 17:36:38 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-10 11:31:28 -0700
commita351a2bf9cb12b969e9e4bfb620268b3efff8723 (patch)
tree05eae15b9dcadff34cc85c667a3e8f02598dd8ae /drivers/usb/chipidea/core.c
parentusb: usbtmc: constify attribute_group structures. (diff)
downloadlinux-dev-a351a2bf9cb12b969e9e4bfb620268b3efff8723.tar.xz
linux-dev-a351a2bf9cb12b969e9e4bfb620268b3efff8723.zip
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.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,
};