aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/cobalt
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-13 08:43:09 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-20 08:05:21 -0400
commit47f14314b33107d72560fee93bb69e1374c010ab (patch)
treeae955efa81dfd5740302138f4a937ff29de4093c /drivers/media/pci/cobalt
parentmedia: usb: make snd_pcm_hardware const (diff)
downloadlinux-dev-47f14314b33107d72560fee93bb69e1374c010ab.tar.xz
linux-dev-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/cobalt')
-rw-r--r--drivers/media/pci/cobalt/cobalt-alsa-pcm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/pci/cobalt/cobalt-alsa-pcm.c b/drivers/media/pci/cobalt/cobalt-alsa-pcm.c
index 49013c6b8646..b69b258d39b9 100644
--- a/drivers/media/pci/cobalt/cobalt-alsa-pcm.c
+++ b/drivers/media/pci/cobalt/cobalt-alsa-pcm.c
@@ -43,7 +43,7 @@ MODULE_PARM_DESC(pcm_debug, "enable debug messages for pcm");
pr_info("cobalt-alsa-pcm %s: " fmt, __func__, ##arg); \
} while (0)
-static struct snd_pcm_hardware snd_cobalt_hdmi_capture = {
+static const struct snd_pcm_hardware snd_cobalt_hdmi_capture = {
.info = SNDRV_PCM_INFO_BLOCK_TRANSFER |
SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED |
@@ -64,7 +64,7 @@ static struct snd_pcm_hardware snd_cobalt_hdmi_capture = {
.periods_max = 4,
};
-static struct snd_pcm_hardware snd_cobalt_playback = {
+static const struct snd_pcm_hardware snd_cobalt_playback = {
.info = SNDRV_PCM_INFO_BLOCK_TRANSFER |
SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED |