diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-13 08:43:09 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-20 08:05:21 -0400 |
commit | 47f14314b33107d72560fee93bb69e1374c010ab (patch) | |
tree | ae955efa81dfd5740302138f4a937ff29de4093c /drivers/media/pci/cx18 | |
parent | 38c4f03acf92cc6845064f509bdb27c4af2618ea (diff) |
media: pci: 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/pci/cx18')
-rw-r--r-- | drivers/media/pci/cx18/cx18-alsa-pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/cx18/cx18-alsa-pcm.c b/drivers/media/pci/cx18/cx18-alsa-pcm.c index f68ee57a9ae2..aadd76466aec 100644 --- a/drivers/media/pci/cx18/cx18-alsa-pcm.c +++ b/drivers/media/pci/cx18/cx18-alsa-pcm.c | |||
@@ -44,7 +44,7 @@ MODULE_PARM_DESC(pcm_debug, "enable debug messages for pcm"); | |||
44 | __func__, ##arg); \ | 44 | __func__, ##arg); \ |
45 | } while (0) | 45 | } while (0) |
46 | 46 | ||
47 | static struct snd_pcm_hardware snd_cx18_hw_capture = { | 47 | static const struct snd_pcm_hardware snd_cx18_hw_capture = { |
48 | .info = SNDRV_PCM_INFO_BLOCK_TRANSFER | | 48 | .info = SNDRV_PCM_INFO_BLOCK_TRANSFER | |
49 | SNDRV_PCM_INFO_MMAP | | 49 | SNDRV_PCM_INFO_MMAP | |
50 | SNDRV_PCM_INFO_INTERLEAVED | | 50 | SNDRV_PCM_INFO_INTERLEAVED | |