Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1661952 > unrolled thread

[PATCH] ALSA : pcsp: pcsp_lib: constify snd_pcsp_playback_ops

Started byArvind Yadav <arvind.yadav.cs@gmail.com>
First post2017-06-09 08:20 +0200
Last post2017-06-09 09:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] ALSA : pcsp: pcsp_lib: constify snd_pcsp_playback_ops Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-06-09 08:20 +0200
    Re: [PATCH] ALSA : pcsp: pcsp_lib: constify snd_pcsp_playback_ops Takashi Iwai <tiwai@suse.de> - 2017-06-09 09:30 +0200

#1661952 — [PATCH] ALSA : pcsp: pcsp_lib: constify snd_pcsp_playback_ops

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-06-09 08:20 +0200
Subject[PATCH] ALSA : pcsp: pcsp_lib: constify snd_pcsp_playback_ops
Message-ID<tQlr3-6oe-5@gated-at.bofh.it>
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(-)

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

[toc] | [next] | [standalone]


#1662017

FromTakashi Iwai <tiwai@suse.de>
Date2017-06-09 09:30 +0200
Message-ID<tQmwO-72q-17@gated-at.bofh.it>
In reply to#1661952
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
> 
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web