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


Groups > linux.kernel > #1713711

[PATCH 12/12] ALSA: parisc: make snd_pcm_hardware const

From Bhumika Goyal <bhumirks@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 12/12] ALSA: parisc: make snd_pcm_hardware const
Date 2017-08-17 11:20 +0200
Message-ID <ufp86-2O3-29@gated-at.bofh.it> (permalink)
References <ufp85-2O3-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Make these const as they are only used in a copy operation.
Done using Coccinelle

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 sound/parisc/harmony.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/parisc/harmony.c b/sound/parisc/harmony.c
index 5911eb3..cb2bc54 100644
--- a/sound/parisc/harmony.c
+++ b/sound/parisc/harmony.c
@@ -260,7 +260,7 @@
 	return HARMONY_SR_44KHZ;
 }
 
-static struct snd_pcm_hardware snd_harmony_playback =
+static const struct snd_pcm_hardware snd_harmony_playback =
 {
 	.info =	(SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | 
 		 SNDRV_PCM_INFO_JOINT_DUPLEX | SNDRV_PCM_INFO_MMAP_VALID |
@@ -281,7 +281,7 @@
 	.fifo_size = 0,
 };
 
-static struct snd_pcm_hardware snd_harmony_capture =
+static const struct snd_pcm_hardware snd_harmony_capture =
 {
         .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
                  SNDRV_PCM_INFO_JOINT_DUPLEX | SNDRV_PCM_INFO_MMAP_VALID |
-- 
1.9.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 00/12] ALSA: make snd_pcm_hardware const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-17 11:20 +0200
  [PATCH 06/12] ALSA: pci: make snd_pcm_hardware const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-17 11:20 +0200
  [PATCH 05/12] ALSA: mips: make snd_pcm_hardware const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-17 11:20 +0200
  [PATCH 07/12] ALSA: pcmcia: make snd_pcm_hardware const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-17 11:20 +0200
  [PATCH 01/12] ALSA: arm: make snd_pcm_hardware const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-17 11:20 +0200
  [PATCH 10/12] ALSA: sparc: make snd_pcm_hardware const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-17 11:20 +0200
  [PATCH 12/12] ALSA: parisc: make snd_pcm_hardware const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-17 11:20 +0200
  [PATCH 08/12] ALSA: ppc: make snd_pcm_hardware const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-17 11:20 +0200
  [PATCH 09/12] ALSA: sh: make snd_pcm_hardware const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-17 11:20 +0200
  [PATCH 11/12] ALSA: usb: make snd_pcm_hardware const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-17 11:20 +0200
  [PATCH 02/12] ALSA: atmel: make snd_pcm_hardware const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-17 11:20 +0200
  [PATCH 04/12] ALSA: isa: make snd_pcm_hardware const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-17 11:30 +0200
  Re: [PATCH 00/12] ALSA: make snd_pcm_hardware const Takashi Iwai <tiwai@suse.de> - 2017-08-17 12:50 +0200

csiph-web