summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-04 08:37:56 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 16:55:48 +0200
commit27c0823fd9a3aad44f00e0e4dfa9d1b3ce3841a6 (patch)
tree86711e67710ebdf349899c22a6a19624c247e858 /drivers/misc
parentmisc: ti-st: constify attribute_group structures. (diff)
downloadlinux-27c0823fd9a3aad44f00e0e4dfa9d1b3ce3841a6.tar.xz
linux-27c0823fd9a3aad44f00e0e4dfa9d1b3ce3841a6.zip
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/misc')
-rw-r--r--drivers/misc/lis3lv02d/lis3lv02d.c2
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
};