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 03/16] ALSA: cs46xx: make snd_pcm_hardware const
Date: Sat, 12 Aug 2017 21:01:15 +0530 [thread overview]
Message-ID: <1502551888-30325-4-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/cs46xx/cs46xx_lib.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c
index 709fb1a..0020fd0 100644
--- a/sound/pci/cs46xx/cs46xx_lib.c
+++ b/sound/pci/cs46xx/cs46xx_lib.c
@@ -1438,7 +1438,7 @@ static irqreturn_t snd_cs46xx_interrupt(int irq, void *dev_id)
return IRQ_HANDLED;
}
-static struct snd_pcm_hardware snd_cs46xx_playback =
+static const struct snd_pcm_hardware snd_cs46xx_playback =
{
.info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED |
@@ -1460,7 +1460,7 @@ static irqreturn_t snd_cs46xx_interrupt(int irq, void *dev_id)
.fifo_size = 0,
};
-static struct snd_pcm_hardware snd_cs46xx_capture =
+static const struct snd_pcm_hardware snd_cs46xx_capture =
{
.info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED |
--
1.9.1
next prev parent reply other threads:[~2017-08-12 15:32 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 ` [PATCH 01/16] ALSA: aw2: make " Bhumika Goyal
2017-08-12 15:31 ` [PATCH 02/16] ALSA: ca0106: " Bhumika Goyal
2017-08-12 15:31 ` Bhumika Goyal [this message]
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-4-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®