Home
last modified time | relevance | path

Searched hist:"343 fe850" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/sound/core/
H A Dpcm.c343fe850 Thu Jun 29 05:32:56 CDT 2017 Arvind Yadav <arvind.yadav.cs@gmail.com> ALSA: pcm: constify attribute_group structures.

attribute_groups are not supposed to change at runtime. All functions
working with attribute_groups provided by <linux/device.h> work with const
attribute_group. So mark the non-const structs as const.

File size before:
text data bss dec hex filename
9781 240 8 10029 272d sound/core/pcm.o

File size After adding 'const':
text data bss dec hex filename
9813 176 8 9997 270d sound/core/pcm.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
343fe850 Thu Jun 29 05:32:56 CDT 2017 Arvind Yadav <arvind.yadav.cs@gmail.com> ALSA: pcm: constify attribute_group structures.

attribute_groups are not supposed to change at runtime. All functions
working with attribute_groups provided by <linux/device.h> work with const
attribute_group. So mark the non-const structs as const.

File size before:
text data bss dec hex filename
9781 240 8 10029 272d sound/core/pcm.o

File size After adding 'const':
text data bss dec hex filename
9813 176 8 9997 270d sound/core/pcm.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>