]> Gentwo Git Trees - linux/.git/commit
ASoC: codecs: tlv320dac33: Convert to use gpiod api
authorAlex Tran <alex.t.tran@gmail.com>
Mon, 1 Sep 2025 18:40:07 +0000 (11:40 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 8 Sep 2025 15:33:32 +0000 (16:33 +0100)
commit1cf87861a2e02432fb68f8bcc8f20a8e42acde59
tree744acd5625a617e6e1bcf17a39ecefc388c48305
parent960ef523cfe420ae8fdd801f1d12be0fb7ed8719
ASoC: codecs: tlv320dac33: Convert to use gpiod api

Convert driver to use the gpiod api instead of the legacy
GPIO interface. Replace power_gpio integer with reset_gpiod descriptor
in the dac33 struct.

Use devm_gpiod_get_optional() to automatically handle resource cleanup
and add proper error checking when setting GPIO values.

Signed-off-by: Alex Tran <alex.t.tran@gmail.com>
Message-ID: <20250901184008.1249535-2-alex.t.tran@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320dac33.c