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

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: samsung: midas_wm1811: Fix error code in probe()

This accidentally returns success instead of -EINVAL.

Fixes: c91d0c2e198d ("ASoC: samsung: midas_wm1811: Add GPIO-based headset jack detection")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Artur Weber <aweber.kernel@gmail.com>
Link: https://lore.kernel.org/r/01590109-cf27-404b-88ff-b42bb73ca1c6@moroto.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Dan Carpenter and committed by
Mark Brown
5c33876a c38082bf

+1 -1
+1 -1
sound/soc/samsung/midas_wm1811.c
··· 623 623 624 624 if (channel_type != IIO_VOLTAGE) { 625 625 dev_err(dev, "ADC channel is not voltage\n"); 626 - return ret; 626 + return -EINVAL; 627 627 } 628 628 629 629 priv->gpio_headset_key = devm_gpiod_get(dev, "headset-key",