diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-04 08:37:57 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 16:55:48 +0200 |
commit | 9045f18209b77e899f5d6ad9463f8a858f0e8535 (patch) | |
tree | 9191c663dc821464c15db105d0517952de6c6435 | |
parent | MISC: add const to bin_attribute structures (diff) | |
download | linux-9045f18209b77e899f5d6ad9463f8a858f0e8535.tar.xz linux-9045f18209b77e899f5d6ad9463f8a858f0e8535.zip |
misc: ti-st: 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>
-rw-r--r-- | drivers/misc/ti-st/st_kim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/ti-st/st_kim.c b/drivers/misc/ti-st/st_kim.c index e74413f882ab..b77aacafc3fc 100644 --- a/drivers/misc/ti-st/st_kim.c +++ b/drivers/misc/ti-st/st_kim.c @@ -660,7 +660,7 @@ static struct attribute *uim_attrs[] = { NULL, }; -static struct attribute_group uim_attr_grp = { +static const struct attribute_group uim_attr_grp = { .attrs = uim_attrs, }; |