]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: fix argument error in nau8824 machine
authorJohn Hsu <KCHSU0@nuvoton.com>
Fri, 2 Mar 2018 02:45:14 +0000 (10:45 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 2 Mar 2018 11:29:20 +0000 (11:29 +0000)
commit3f216d1fdc83f324a7e9bb2dc2ce24d659ab0c4c
treef9c8b1ac33c908874a564128d7b9b8db3e77fc74
parent7c7b9636f5e5a0936e4086e4a689b5e8230192bc
ASoC: Intel: fix argument error in nau8824 machine

Fix the error: passing argument 1 of 'nau8824_enable_jack_detect'
from incompatible pointer type
  nau8824_enable_jack_detect(codec, jack);
                             ^~~~~
Which expects 'struct snd_soc_component *' but argument is of type
'struct snd_soc_codec *'

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: John Hsu <KCHSU0@nuvoton.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/cht_bsw_nau8824.c