ASoC: Don't use wm8994->control_data in wm8994_readable_register()
Subsystems (3)
PATCH 1/2 ASoC: Don't use wm8994->control_data in wm8994_readable_register()
The field is no longer initialised so this will crash if running on wm8958.
Reported-by Thomas Abraham <[email protected]>
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/codecs/wm8994.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8994.c +1 -1
@@ -56,7 +56,7 @@ static int wm8994_retune_mobile_base[] = {static int wm8994_readable (struct snd_soc_codec *codec,unsigned int reg) {struct wm8994_priv *wm8994 =snd_soc_codec_get_drvdata (codec); -struct wm8994 *control = wm8994->control_data; +struct wm8994 *control = codec->control_data;switch (reg) {case WM8994_GPIO_1 :
Signature · 1 line
1.7.7.1
PATCH 2/2 ASoC: Don't use wm8994->control_data when requesting IRQs
The field is no longer initialised so this will crash if running on wm8958.
Reported-by Thomas Abraham <[email protected]>
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/codecs/wm8994.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/wm8994.c +2 -2
@@ -3180,9 +3180,9 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)wm8994_request_irq (codec->control_data,WM8994_IRQ_FIFOS_ERR , wm8994_fifo_error,"FIFO error" , codec); -wm8994_request_irq (wm8994->control_data,WM8994_IRQ_TEMP_WARN , +wm8994_request_irq (codec->control_data,WM8994_IRQ_TEMP_WARN , wm8994_temp_warn,"Thermal warning" , codec); -wm8994_request_irq (wm8994->control_data,WM8994_IRQ_TEMP_SHUT , +wm8994_request_irq (codec->control_data,WM8994_IRQ_TEMP_SHUT , wm8994_temp_shut,"Thermal shutdown" , codec); ret = wm8994_request_irq(codec->control_data, WM8994_IRQ_DCS_DONE,
Signature · 1 line
1.7.7.1