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>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
38c4f03acf
commit
47f14314b3
@@ -293,7 +293,7 @@ static int dsp_buffer_free(struct cx23885_audio_dev *chip)
|
||||
*/
|
||||
#define DEFAULT_FIFO_SIZE 4096
|
||||
|
||||
static struct snd_pcm_hardware snd_cx23885_digital_hw = {
|
||||
static const struct snd_pcm_hardware snd_cx23885_digital_hw = {
|
||||
.info = SNDRV_PCM_INFO_MMAP |
|
||||
SNDRV_PCM_INFO_INTERLEAVED |
|
||||
SNDRV_PCM_INFO_BLOCK_TRANSFER |
|
||||
|
||||
Reference in New Issue
Block a user