summaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy
diff options
context:
space:
mode:
authorArvind Yadav2017-08-04 14:06:43 +0200
committerGreg Kroah-Hartman2017-08-10 20:31:27 +0200
commit1cefc2690f59736fd8d9ccde2579287257f46177 (patch)
tree2d68ab22af5359413c19d34d0e72fbeaf352f34a /drivers/usb/phy
parentusb: wusbcore: dev-sysfs: constify attribute_group structures. (diff)
downloadkernel-qcow2-linux-1cefc2690f59736fd8d9ccde2579287257f46177.tar.gz
kernel-qcow2-linux-1cefc2690f59736fd8d9ccde2579287257f46177.tar.xz
kernel-qcow2-linux-1cefc2690f59736fd8d9ccde2579287257f46177.zip
usb: phy-mv-usb: 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/phy')
-rw-r--r--drivers/usb/phy/phy-mv-usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-mv-usb.c b/drivers/usb/phy/phy-mv-usb.c
index 6e84a5710407..0e315694adc9 100644
--- a/drivers/usb/phy/phy-mv-usb.c
+++ b/drivers/usb/phy/phy-mv-usb.c
@@ -648,7 +648,7 @@ static struct attribute *inputs_attrs[] = {
NULL,
};
-static struct attribute_group inputs_attr_group = {
+static const struct attribute_group inputs_attr_group = {
.name = "inputs",
.attrs = inputs_attrs,
};