diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-04 08:25:52 +0200 |
---|---|---|
committer | Jacek Anaszewski <jacek.anaszewski@gmail.com> | 2017-08-04 21:54:15 +0200 |
commit | 7358df4d5b01d9b5cccad6149b63804e8cdcf1dc (patch) | |
tree | fc6e93bca30f517f29c3e98c8d0a9f42ef666aba /drivers/leds | |
parent | leds: tlc591xx: add missing of_node_put (diff) | |
download | linux-7358df4d5b01d9b5cccad6149b63804e8cdcf1dc.tar.xz linux-7358df4d5b01d9b5cccad6149b63804e8cdcf1dc.zip |
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.c | 2 |
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, }; |