diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-04 14:06:44 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-10 20:31:27 +0200 |
commit | 4c5d43b451532941d0289320fd50c1a53fceffb0 (patch) | |
tree | ac4dbfa25727dc26794a45ae67e3c9a5e67979c0 /drivers | |
parent | usb: usbsevseg: constify attribute_group structures. (diff) | |
download | linux-4c5d43b451532941d0289320fd50c1a53fceffb0.tar.xz linux-4c5d43b451532941d0289320fd50c1a53fceffb0.zip |
usb: phy-tahvo: 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')
-rw-r--r-- | drivers/usb/phy/phy-tahvo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-tahvo.c b/drivers/usb/phy/phy-tahvo.c index a31c8682e998..8babd318c0ed 100644 --- a/drivers/usb/phy/phy-tahvo.c +++ b/drivers/usb/phy/phy-tahvo.c @@ -326,7 +326,7 @@ static struct attribute *tahvo_attributes[] = { NULL }; -static struct attribute_group tahvo_attr_group = { +static const struct attribute_group tahvo_attr_group = { .attrs = tahvo_attributes, }; |