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.
Arvind Yadav (6): [PATCH 1/6] misc: apds9802als: constify attribute_group structures. [PATCH 2/6] misc: apds990x: constify attribute_group structures. [PATCH 3/6] misc: bh1770glc: constify attribute_group structures. [PATCH 4/6] misc: isl29020: constify attribute_group structures. [PATCH 5/6] misc: lis3lv02d: constify attribute_group structures. [PATCH 6/6] misc: ti-st: constify attribute_group structures. drivers/misc/apds9802als.c | 2 +- drivers/misc/apds990x.c | 2 +- drivers/misc/bh1770glc.c | 2 +- drivers/misc/isl29020.c | 2 +- drivers/misc/lis3lv02d/lis3lv02d.c | 2 +- drivers/misc/ti-st/st_kim.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) -- 1.9.1