summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/solo6x10/solo6x10-g723.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-16 11:17:05 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-20 14:25:49 +0200
commit24a571d1edee3afc167c67460bbb7a06ed499ab1 (patch)
tree1ab9f0d61a5f9c25228d4945085d127b0c23f828 /drivers/media/pci/solo6x10/solo6x10-g723.c
parentmedia: cx88: make snd_kcontrol_new const (diff)
downloadlinux-24a571d1edee3afc167c67460bbb7a06ed499ab1.tar.xz
linux-24a571d1edee3afc167c67460bbb7a06ed499ab1.zip
media: solo6x10: make snd_kcontrol_new const
Make this const as it is 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/solo6x10/solo6x10-g723.c')
-rw-r--r--drivers/media/pci/solo6x10/solo6x10-g723.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/solo6x10/solo6x10-g723.c b/drivers/media/pci/solo6x10/solo6x10-g723.c
index 3ca947092775..81be1b8df758 100644
--- a/drivers/media/pci/solo6x10/solo6x10-g723.c
+++ b/drivers/media/pci/solo6x10/solo6x10-g723.c
@@ -319,7 +319,7 @@ static int snd_solo_capture_volume_put(struct snd_kcontrol *kcontrol,
return 1;
}
-static struct snd_kcontrol_new snd_solo_capture_volume = {
+static const struct snd_kcontrol_new snd_solo_capture_volume = {
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
.name = "Capture Volume",
.info = snd_solo_capture_volume_info,