]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: codec: tlv320aic32x4: Convert to GPIO descriptors
authorPeng Fan <peng.fan@nxp.com>
Thu, 10 Jul 2025 12:40:03 +0000 (20:40 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 13 Jul 2025 21:36:56 +0000 (22:36 +0100)
commit790d5f8ee6f2a27686d042abbce16b4e03ac1608
tree09884f4c2386e227dc488f1e9b3591598d0b107c
parentb709c1aef5e15db3aff5749fc7ed9c61b8d0a322
ASoC: codec: tlv320aic32x4: Convert to GPIO descriptors

of_gpio.h is deprecated, update the driver to use GPIO descriptors.
 - Use devm_gpiod_get_optional to get GPIO descriptor, and set consumer
   name.
 - Use gpiod_set_value to configure output value.

While at here, reorder the included headers.

Checking the DTS that use the device, all are using GPIOD_ACTIVE_LOW
polarity for reset-gpios, so all should work as expected with this patch.

Cc: Markus Niebel <Markus.Niebel@ew.tq-group.com>
Cc: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://patch.msgid.link/20250710-asoc-gpio-1-v2-3-2233b272a1a6@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320aic32x4.c