From: Bhumika Goyal Date: Wed, 16 Aug 2017 09:17:05 +0000 (-0400) Subject: media: solo6x10: make snd_kcontrol_new const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=24a571d1edee3afc167c67460bbb7a06ed499ab1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- 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,