]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: tlv320adcx140: Propagate error codes during probe
authorDimitrios Katsaros <patcherwork@gmail.com>
Tue, 13 Jan 2026 10:58:46 +0000 (11:58 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 14 Jan 2026 13:35:31 +0000 (13:35 +0000)
commitd89aad92cfd15edbd704746f44c98fe687f9366f
tree4cc9a34ceb0c9b7e67d781351d3a5f6fc0ff677a
parentbe7664c81d3129fc313ef62ff275fd3d33cfecd4
ASoC: tlv320adcx140: Propagate error codes during probe

When scanning for the reset pin, we could get an -EPROBE_DEFER.
The driver would assume that no reset pin had been defined,
which would mean that the chip would never be powered.

Now we both respect any error we get from devm_gpiod_get_optional.
We also now properly report the missing GPIO definition when
'gpio_reset' is NULL.

Signed-off-by: Dimitrios Katsaros <patcherwork@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://patch.msgid.link/20260113-sound-soc-codecs-tvl320adcx140-v4-3-8f7ecec525c8@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320adcx140.c