drm/omap: panel-sony-acx565akm: constify attribute_group structures.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Mon, 3 Jul 2017 11:32:14 +0000 (17:02 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 15 Aug 2017 12:18:25 +0000 (15:18 +0300)
attribute_groups are not supposed to change at runtime. All functions
working with attribute_groups provided by <linux/sysfs.h> work with const
attribute_group. So mark the non-const structs as const.

File size before:
   text    data     bss     dec     hex filename
   5147     560       0    5707    164b panel-sony-acx565akm.o

File size After adding 'const':
   text    data     bss     dec     hex filename
   5211     496       0    5707    164b panel-sony-acx565akm.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/displays/panel-sony-acx565akm.c

index 346aefdb015fc9b009e9336bb983ae3544489795..ebf9ea471d57f2cb3d482c2eab6bdda8423d2e85 100644 (file)
@@ -503,7 +503,7 @@ static struct attribute *bldev_attrs[] = {
        NULL,
 };
 
-static struct attribute_group bldev_attr_group = {
+static const struct attribute_group bldev_attr_group = {
        .attrs = bldev_attrs,
 };