diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-04 15:06:43 +0300 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-08-15 14:18:55 +0300 |
commit | 2edb048090ccc70d316fe914f3c039b01d3217b3 (patch) | |
tree | f5f167a1ef9ebe2983f7664c5486a9ba32606de9 /drivers/usb/phy | |
parent | f367b72c4e08aafacc5267c73299a62ca79635ec (diff) | |
download | linux-2edb048090ccc70d316fe914f3c039b01d3217b3.tar.xz |
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: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/phy')
-rw-r--r-- | drivers/usb/phy/phy-mv-usb.c | 2 |
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 697a741a0cb1..d17cc92c282e 100644 --- a/drivers/usb/phy/phy-mv-usb.c +++ b/drivers/usb/phy/phy-mv-usb.c @@ -650,7 +650,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, }; |