diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-04 12:07:56 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 16:55:48 +0200 |
commit | 27c0823fd9a3aad44f00e0e4dfa9d1b3ce3841a6 (patch) | |
tree | 86711e67710ebdf349899c22a6a19624c247e858 /drivers | |
parent | 9045f18209b77e899f5d6ad9463f8a858f0e8535 (diff) | |
download | linux-27c0823fd9a3aad44f00e0e4dfa9d1b3ce3841a6.tar.bz2 |
misc: lis3lv02d: 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/misc/lis3lv02d/lis3lv02d.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/lis3lv02d/lis3lv02d.c b/drivers/misc/lis3lv02d/lis3lv02d.c index e389b0b5278d..8d53609861d8 100644 --- a/drivers/misc/lis3lv02d/lis3lv02d.c +++ b/drivers/misc/lis3lv02d/lis3lv02d.c @@ -856,7 +856,7 @@ static struct attribute *lis3lv02d_attributes[] = { NULL }; -static struct attribute_group lis3lv02d_attribute_group = { +static const struct attribute_group lis3lv02d_attribute_group = { .attrs = lis3lv02d_attributes }; |