diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-13 18:13:11 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 11:39:33 +0200 |
commit | 2ab3c34c9c75331143d67042e826bdcde4d6ab37 (patch) | |
tree | 5f2718c0ae80349084be6bd8f27cb04e5c83801f /drivers/usb/gadget | |
parent | 334007d52597ebb079766ab34711728677130068 (diff) | |
download | linux-stable-2ab3c34c9c75331143d67042e826bdcde4d6ab37.tar.gz linux-stable-2ab3c34c9c75331143d67042e826bdcde4d6ab37.tar.bz2 linux-stable-2ab3c34c9c75331143d67042e826bdcde4d6ab37.zip |
usb: gadget: make snd_pcm_hardware const
Make this const as it is only used during a copy operation.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/function/u_audio.c | 2 |
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, |