]> git.baikalelectronics.ru Git - kernel.git/commit
media: cx18: Fix incompatible type for argument error
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 16 Aug 2017 14:54:00 +0000 (10:54 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 12:26:16 +0000 (08:26 -0400)
commitbd6dd8089875d43e6037db3c228bf806896c5e51
tree9b8bc39d46aec383bd7b3d691c16765c6c695537
parentb95d322aac0eaf309cadc8875c7a3533dcf4a458
media: cx18: Fix incompatible type for argument error

The first argument of function snd_ctl_new1 is of type const struct
snd_kcontrol_new * but in this file the variable is passed by value to
this function.
This generated ""incompatible type for argument" error. So, pass the
variable by reference.

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>
drivers/media/pci/cx18/cx18-alsa-mixer.c