Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Arvind Yadav and committed by
Jacek Anaszewski
7358df4d c6872911

+1 -1
+1 -1
drivers/leds/leds-blinkm.c
··· 298 298 NULL, 299 299 }; 300 300 301 - static struct attribute_group blinkm_group = { 301 + static const struct attribute_group blinkm_group = { 302 302 .name = "blinkm", 303 303 .attrs = blinkm_attrs, 304 304 };