summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-13 18:13:11 +0530
committerAjay Agarwal <ajaya@codeaurora.org>2018-12-20 20:39:14 +0530
commitdebfef9994e9fc7b81afc0eb93891fc09d512fa6 (patch)
tree933cdfb1bb7518c742130ad3c63ac36aa3c8864f
parent54120399c6705d06660be005e986ce9f87c9c6c2 (diff)
usb: gadget: make snd_pcm_hardware const
Make this const as it is only used during a copy operation. Done using Coccinelle. Change-Id: I3db5b880248aeee8f845148093f7d6768db009e6 Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Git-commit: 2ab3c34c9c75331143d67042e826bdcde4d6ab37 Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
-rw-r--r--drivers/usb/gadget/function/u_audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/u_audio.c b/drivers/usb/gadget/function/u_audio.c
index d4caa212e666..3971bbab88bd 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,