From: bhumirks@gmail.com (Bhumika Goyal)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/6] usb: gadget: make snd_pcm_hardware const
Date: Sun, 13 Aug 2017 18:13:11 +0530 [thread overview]
Message-ID: <1502628193-3343-5-git-send-email-bhumirks@gmail.com> (raw)
In-Reply-To: <1502628193-3343-1-git-send-email-bhumirks@gmail.com>
Make this const as it is only used during a copy operation.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
drivers/usb/gadget/function/u_audio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/gadget/function/u_audio.c b/drivers/usb/gadget/function/u_audio.c
index d4caa21..3971bba 100644
--- a/drivers/usb/gadget/function/u_audio.c
+++ b/drivers/usb/gadget/function/u_audio.c
@@ -79,7 +79,7 @@ struct snd_uac_chip {
unsigned int p_framesize;
};
-static struct snd_pcm_hardware uac_pcm_hardware = {
+static const struct snd_pcm_hardware uac_pcm_hardware = {
.info = SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER
| SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID
| SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_RESUME,
--
1.9.1
next prev parent reply other threads:[~2017-08-13 12:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-13 12:43 [PATCH 0/6] drivers: make snd_pcm_hardware const Bhumika Goyal
2017-08-13 12:43 ` [PATCH 1/6] [media] usb: " Bhumika Goyal
2017-08-13 12:43 ` [PATCH 2/6] [media] pci: " Bhumika Goyal
2017-08-13 12:43 ` [PATCH 3/6] drm: bridge: dw-hdmi: " Bhumika Goyal
2017-08-13 12:43 ` Bhumika Goyal [this message]
2017-08-13 12:43 ` [PATCH 5/6] staging: bcm2835-audio: " Bhumika Goyal
2017-08-13 12:43 ` [PATCH 6/6] [media] tuners: " Bhumika Goyal
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=1502628193-3343-5-git-send-email-bhumirks@gmail.com \
--to=bhumirks@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).