From: Arvind Yadav Date: Fri, 9 Jun 2017 06:09:56 +0000 (+0530) Subject: ALSA : pcsp: pcsp_lib: constify snd_pcsp_playback_ops X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=642b7589da26d59ce36f9a4b1b5188f95e514de9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ALSA : pcsp: pcsp_lib: constify snd_pcsp_playback_ops File size before: text data bss dec hex filename 2027 168 1 2196 894 sound/drivers/pcsp/pcsp_lib.o File size After: text data bss dec hex filename 2155 40 1 2196 894 sound/drivers/pcsp/pcsp_lib.o Signed-off-by: Arvind Yadav Signed-off-by: Takashi Iwai --- diff --git a/sound/drivers/pcsp/pcsp_lib.c b/sound/drivers/pcsp/pcsp_lib.c index aca2d7d5f059..44b3632f6940 100644 --- a/sound/drivers/pcsp/pcsp_lib.c +++ b/sound/drivers/pcsp/pcsp_lib.c @@ -323,7 +323,7 @@ static int snd_pcsp_playback_open(struct snd_pcm_substream *substream) return 0; } -static struct snd_pcm_ops snd_pcsp_playback_ops = { +static const struct snd_pcm_ops snd_pcsp_playback_ops = { .open = snd_pcsp_playback_open, .close = snd_pcsp_playback_close, .ioctl = snd_pcm_lib_ioctl,