diff options
author | Bhumika Goyal | 2017-08-13 14:43:09 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2017-08-20 14:05:21 +0200 |
commit | 47f14314b33107d72560fee93bb69e1374c010ab (patch) | |
tree | ae955efa81dfd5740302138f4a937ff29de4093c /drivers/media/pci/cx23885 | |
parent | media: usb: make snd_pcm_hardware const (diff) | |
download | kernel-qcow2-linux-47f14314b33107d72560fee93bb69e1374c010ab.tar.gz kernel-qcow2-linux-47f14314b33107d72560fee93bb69e1374c010ab.tar.xz kernel-qcow2-linux-47f14314b33107d72560fee93bb69e1374c010ab.zip |
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/cx23885')
-rw-r--r-- | drivers/media/pci/cx23885/cx23885-alsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/cx23885/cx23885-alsa.c b/drivers/media/pci/cx23885/cx23885-alsa.c index c148f9a4a9ac..d8c3637e492e 100644 --- a/drivers/media/pci/cx23885/cx23885-alsa.c +++ b/drivers/media/pci/cx23885/cx23885-alsa.c @@ -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 | |