aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/media/usb/tm6000
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-13 08:43:08 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-20 08:05:10 -0400
commit38c4f03acf92cc6845064f509bdb27c4af2618ea (patch)
treee37144afa44088db2169ce5a58cd1f09c9732081 /drivers/media/usb/tm6000
parentmedia: radio: constify usb_device_id (diff)
downloadwireguard-linux-38c4f03acf92cc6845064f509bdb27c4af2618ea.tar.xz
wireguard-linux-38c4f03acf92cc6845064f509bdb27c4af2618ea.zip
media: usb: make snd_pcm_hardware const
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/tm6000')
-rw-r--r--drivers/media/usb/tm6000/tm6000-alsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/tm6000/tm6000-alsa.c b/drivers/media/usb/tm6000/tm6000-alsa.c
index 422322541af6..3717a6844ea8 100644
--- a/drivers/media/usb/tm6000/tm6000-alsa.c
+++ b/drivers/media/usb/tm6000/tm6000-alsa.c
@@ -143,7 +143,7 @@ static int dsp_buffer_alloc(struct snd_pcm_substream *substream, int size)
*/
#define DEFAULT_FIFO_SIZE 4096
-static struct snd_pcm_hardware snd_tm6000_digital_hw = {
+static const struct snd_pcm_hardware snd_tm6000_digital_hw = {
.info = SNDRV_PCM_INFO_BATCH |
SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED |