diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-04 17:36:44 +0530 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-08-15 14:18:56 +0300 |
commit | 6cea1449f6926162432e7d62c02ab7a4166c8c25 (patch) | |
tree | 9c4c1c3febd26f051aac53242ef1b99081e7b838 /drivers/usb/phy | |
parent | 2edb048090ccc70d316fe914f3c039b01d3217b3 (diff) | |
download | linux-6cea1449f6926162432e7d62c02ab7a4166c8c25.tar.gz linux-6cea1449f6926162432e7d62c02ab7a4166c8c25.tar.bz2 linux-6cea1449f6926162432e7d62c02ab7a4166c8c25.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: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/phy')
-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, }; |