summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-04 11:55:52 +0530
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2017-08-04 21:54:15 +0200
commit7358df4d5b01d9b5cccad6149b63804e8cdcf1dc (patch)
treefc6e93bca30f517f29c3e98c8d0a9f42ef666aba /drivers/leds
parentc68729119f4d2993bec3c9cb999ad76de5aeddba (diff)
downloadlinux-7358df4d5b01d9b5cccad6149b63804e8cdcf1dc.tar.bz2
leds: blinkm: 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: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-blinkm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-blinkm.c b/drivers/leds/leds-blinkm.c
index 617fe975bf6e..d03ed6b4176b 100644
--- a/drivers/leds/leds-blinkm.c
+++ b/drivers/leds/leds-blinkm.c
@@ -298,7 +298,7 @@ static struct attribute *blinkm_attrs[] = {
NULL,
};
-static struct attribute_group blinkm_group = {
+static const struct attribute_group blinkm_group = {
.name = "blinkm",
.attrs = blinkm_attrs,
};