drm: i915: sysfs: constify attribute_group structures.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Mon, 3 Jul 2017 11:08:25 +0000 (16:38 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Jul 2017 09:27:32 +0000 (11:27 +0200)
commit0a7a0986559d85c9926cbe5b1570212e09008a7c
treea7f60f0aea1c11030e90888ebcdedc6810c0c092
parentc99a259b4b5192ba30d37fe25f09632d4c52f5d7
drm: i915: sysfs: constify attribute_group structures.

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
   4028    1088       0    5116    13fc drivers/gpu/drm/i915/i915_sysfs.o

File size After adding 'const':
   text    data     bss     dec     hex filename
   4196     928       0    5124    1404 drivers/gpu/drm/i915/i915_sysfs.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/13b5c875e677c10e6257be4fac31b2b6c77a494f.1499079914.git.arvind.yadav.cs@gmail.com
drivers/gpu/drm/i915/i915_sysfs.c