diff mbox

ALSA : pcsp: pcsp_lib: constify snd_pcsp_playback_ops

Message ID 0ef4f01bbb4cb6d9bea26845fbbcb087406f6798.1496988452.git.arvind.yadav.cs@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Arvind Yadav June 9, 2017, 6:09 a.m. UTC
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 <arvind.yadav.cs@gmail.com>
---
 sound/drivers/pcsp/pcsp_lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Takashi Iwai June 9, 2017, 7:20 a.m. UTC | #1
On Fri, 09 Jun 2017 08:09:56 +0200,
Arvind Yadav wrote:
> 
> 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 <arvind.yadav.cs@gmail.com>

Applied, thanks.


Takashi


> ---
>  sound/drivers/pcsp/pcsp_lib.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/drivers/pcsp/pcsp_lib.c b/sound/drivers/pcsp/pcsp_lib.c
> index aca2d7d..44b3632 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,
> -- 
> 1.9.1
> 
>
diff mbox

Patch

diff --git a/sound/drivers/pcsp/pcsp_lib.c b/sound/drivers/pcsp/pcsp_lib.c
index aca2d7d..44b3632 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,