diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-07 11:54:15 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-10 11:31:27 -0700 |
commit | f892a9bc41c7fbd1c918a134e754ec3dc9adfcea (patch) | |
tree | 02f6f88b9473f15b374de7022eaa95137ba8d417 /drivers/uwb | |
parent | 95aa932c93d2a138579d51d4ff922ef0fb1ddd3c (diff) | |
download | linux-stable-f892a9bc41c7fbd1c918a134e754ec3dc9adfcea.tar.gz linux-stable-f892a9bc41c7fbd1c918a134e754ec3dc9adfcea.tar.bz2 linux-stable-f892a9bc41c7fbd1c918a134e754ec3dc9adfcea.zip |
uwb: lc-rc: 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/uwb')
-rw-r--r-- | drivers/uwb/lc-rc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/uwb/lc-rc.c b/drivers/uwb/lc-rc.c index 97ee1b46db69..b0816c753a63 100644 --- a/drivers/uwb/lc-rc.c +++ b/drivers/uwb/lc-rc.c @@ -228,7 +228,7 @@ static struct attribute *rc_attrs[] = { NULL, }; -static struct attribute_group rc_attr_group = { +static const struct attribute_group rc_attr_group = { .attrs = rc_attrs, }; |