From: Takashi Iwai <tiwai@suse.de>
To: "Julia Lawall" <Julia.Lawall@lip6.fr>
Cc: "Jaya Kumar" <jayakumar.alsa@gmail.com>,
<alsa-devel@alsa-project.org>, "Jaroslav Kysela" <perex@perex.cz>,
<kernel-janitors@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ALSA: cs5535audio: constify cs5535audio_dma_ops structures
Date: Wed, 30 Dec 2015 22:51:02 +0100 [thread overview]
Message-ID: <s5h8u4btxkp.wl-tiwai@suse.de> (raw)
In-Reply-To: <1451472293-14168-1-git-send-email-Julia.Lawall@lip6.fr>
On Wed, 30 Dec 2015 11:44:53 +0100,
Julia Lawall wrote:
>
> The cs5535audio_dma_ops structures are never modified, so declare them as
> const.
>
> Done with the help of Coccinelle.
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Applied, thanks.
Takashi
>
> ---
> sound/pci/cs5535audio/cs5535audio_pcm.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sound/pci/cs5535audio/cs5535audio_pcm.c b/sound/pci/cs5535audio/cs5535audio_pcm.c
> index 9c2dc91..27fa57d 100644
> --- a/sound/pci/cs5535audio/cs5535audio_pcm.c
> +++ b/sound/pci/cs5535audio/cs5535audio_pcm.c
> @@ -402,7 +402,7 @@ static struct snd_pcm_ops snd_cs5535audio_capture_ops = {
> .pointer = snd_cs5535audio_pcm_pointer,
> };
>
> -static struct cs5535audio_dma_ops snd_cs5535audio_playback_dma_ops = {
> +static const struct cs5535audio_dma_ops snd_cs5535audio_playback_dma_ops = {
> .type = CS5535AUDIO_DMA_PLAYBACK,
> .enable_dma = cs5535audio_playback_enable_dma,
> .disable_dma = cs5535audio_playback_disable_dma,
> @@ -412,7 +412,7 @@ static struct cs5535audio_dma_ops snd_cs5535audio_playback_dma_ops = {
> .read_dma_pntr = cs5535audio_playback_read_dma_pntr,
> };
>
> -static struct cs5535audio_dma_ops snd_cs5535audio_capture_dma_ops = {
> +static const struct cs5535audio_dma_ops snd_cs5535audio_capture_dma_ops = {
> .type = CS5535AUDIO_DMA_CAPTURE,
> .enable_dma = cs5535audio_capture_enable_dma,
> .disable_dma = cs5535audio_capture_disable_dma,
>
>
prev parent reply other threads:[~2015-12-30 21:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-30 10:44 Julia Lawall
2015-12-30 21:51 ` Takashi Iwai [this message]
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=s5h8u4btxkp.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=Julia.Lawall@lip6.fr \
--cc=alsa-devel@alsa-project.org \
--cc=jayakumar.alsa@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
/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®