mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ALSA : pcsp: pcsp_lib: constify snd_pcsp_playback_ops
@ 2017-06-09  6:09 Arvind Yadav
  2017-06-09  7:20 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Arvind Yadav @ 2017-06-09  6:09 UTC (permalink / raw)
  To: perex, tiwai; +Cc: alsa-devel, linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ALSA : pcsp: pcsp_lib: constify snd_pcsp_playback_ops
  2017-06-09  6:09 [PATCH] ALSA : pcsp: pcsp_lib: constify snd_pcsp_playback_ops Arvind Yadav
@ 2017-06-09  7:20 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2017-06-09  7:20 UTC (permalink / raw)
  To: Arvind Yadav; +Cc: perex, alsa-devel, linux-kernel

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
> 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-09  7:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-09  6:09 [PATCH] ALSA : pcsp: pcsp_lib: constify snd_pcsp_playback_ops Arvind Yadav
2017-06-09  7:20 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome