Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: wm8994: align function prototype

cppcheck warning:

sound/soc/codecs/wm8994.c:3923:26: style:inconclusive: Function
'wm8958_mic_detect' argument 3 names different: declaration 'cb'
definition 'det_cb'. [funcArgNamesDifferent]
wm1811_micdet_cb det_cb, void *det_cb_data,
^
sound/soc/codecs/wm8994.h:53:26: note: Function 'wm8958_mic_detect'
argument 3 names different: declaration 'cb' definition 'det_cb'.
wm1811_micdet_cb cb, void *det_cb_data,
^
sound/soc/codecs/wm8994.c:3923:26: note: Function 'wm8958_mic_detect'
argument 3 names different: declaration 'cb' definition 'det_cb'.
wm1811_micdet_cb det_cb, void *det_cb_data,
^

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210311004332.120901-8-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Pierre-Louis Bossart and committed by
Mark Brown
b564fdb7 729d42a4

+1 -1
+1 -1
sound/soc/codecs/wm8994.h
··· 50 50 int wm8994_mic_detect(struct snd_soc_component *component, struct snd_soc_jack *jack, 51 51 int micbias); 52 52 int wm8958_mic_detect(struct snd_soc_component *component, struct snd_soc_jack *jack, 53 - wm1811_micdet_cb cb, void *det_cb_data, 53 + wm1811_micdet_cb det_cb, void *det_cb_data, 54 54 wm1811_mic_id_cb id_cb, void *id_cb_data); 55 55 56 56 int wm8994_vmid_mode(struct snd_soc_component *component, enum wm8994_vmid_mode mode);