mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bhumika Goyal <bhumirks@gmail.com>
To: julia.lawall@lip6.fr, T-Bone@parisc-linux.org, perex@perex.cz,
	tiwai@suse.com, clemens@ladisch.de, jayakumar.alsa@gmail.com,
	linux-parisc@vger.kernel.org, alsa-devel@alsa-project.org,
	linux-kernel@vger.kernel.org
Cc: Bhumika Goyal <bhumirks@gmail.com>
Subject: [PATCH 01/16] ALSA: aw2: make snd_pcm_hardware const
Date: Sat, 12 Aug 2017 21:01:13 +0530	[thread overview]
Message-ID: <1502551888-30325-2-git-send-email-bhumirks@gmail.com> (raw)
In-Reply-To: <1502551888-30325-1-git-send-email-bhumirks@gmail.com>

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

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

diff --git a/sound/pci/aw2/aw2-alsa.c b/sound/pci/aw2/aw2-alsa.c
index 8356180..9a49e42 100644
--- a/sound/pci/aw2/aw2-alsa.c
+++ b/sound/pci/aw2/aw2-alsa.c
@@ -52,7 +52,7 @@
  * TYPEDEFS
  ********************************/
   /* hardware definition */
-static struct snd_pcm_hardware snd_aw2_playback_hw = {
+static const struct snd_pcm_hardware snd_aw2_playback_hw = {
 	.info = (SNDRV_PCM_INFO_MMAP |
 		 SNDRV_PCM_INFO_INTERLEAVED |
 		 SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_MMAP_VALID),
@@ -69,7 +69,7 @@
 	.periods_max = 1024,
 };
 
-static struct snd_pcm_hardware snd_aw2_capture_hw = {
+static const struct snd_pcm_hardware snd_aw2_capture_hw = {
 	.info = (SNDRV_PCM_INFO_MMAP |
 		 SNDRV_PCM_INFO_INTERLEAVED |
 		 SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_MMAP_VALID),
-- 
1.9.1

  reply	other threads:[~2017-08-12 15:31 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-12 15:31 [PATCH 00/16] ALSA: PCI: constify " Bhumika Goyal
2017-08-12 15:31 ` Bhumika Goyal [this message]
2017-08-12 15:31 ` [PATCH 02/16] ALSA: ca0106: make " Bhumika Goyal
2017-08-12 15:31 ` [PATCH 03/16] ALSA: cs46xx: " Bhumika Goyal
2017-08-12 15:31 ` [PATCH 04/16] ALSA: korg1212: " Bhumika Goyal
2017-08-12 15:31 ` [PATCH 05/16] ALSA: cs5535audio: " Bhumika Goyal
2017-08-12 15:31 ` [PATCH 06/16] ALSA: emu10k1: " Bhumika Goyal
2017-08-12 15:31 ` [PATCH 07/16] ALSA: lola: " Bhumika Goyal
2017-08-12 15:31 ` [PATCH 08/16] ALSA: lx6464es: " Bhumika Goyal
2017-08-12 15:31 ` [PATCH 09/16] ALSA: mixart: " Bhumika Goyal
2017-08-12 15:31 ` [PATCH 10/16] ALSA: ctxfi: " Bhumika Goyal
2017-08-12 15:31 ` [PATCH 11/16] ALSA: pcxhr: " Bhumika Goyal
2017-08-12 15:31 ` [PATCH 12/16] ALSA: riptide: " Bhumika Goyal
2017-08-12 15:31 ` [PATCH 13/16] ALSA: rme9652: " Bhumika Goyal
2017-08-12 15:31 ` [PATCH 14/16] ALSA: trident: " Bhumika Goyal
2017-08-12 15:31 ` [PATCH 15/16] ALSA: ymfpci: " Bhumika Goyal
2017-08-12 15:31 ` [PATCH 16/16] ALSA: pci: " Bhumika Goyal
2017-08-12 21:32 ` [PATCH 00/16] ALSA: PCI: constify " Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1502551888-30325-2-git-send-email-bhumirks@gmail.com \
    --to=bhumirks@gmail.com \
    --cc=T-Bone@parisc-linux.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=clemens@ladisch.de \
    --cc=jayakumar.alsa@gmail.com \
    --cc=julia.lawall@lip6.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-parisc@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®