]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: codec: tpa6130a2: Convert to GPIO descriptors
authorPeng Fan <peng.fan@nxp.com>
Mon, 14 Apr 2025 08:34:25 +0000 (16:34 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 24 Apr 2025 11:53:05 +0000 (12:53 +0100)
commitf198b6b256aabe6d136401505e974ef2eb2df4af
tree73abe90bf5094ff9850fc0afeb8a44e7293b00cc
parent63a9362c7172c74f6df19195c3e7491d3ec123ca
ASoC: codec: tpa6130a2: 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 with default
  polarity GPIOD_OUT_LOW, set consumer name.
- Use gpiod_set_value to configure output value.

Checking the DTS polarity, all users are using GPIOD_ACTIVE_HIGH.
so all should work as expected with this patch.

Cc: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patch.msgid.link/20250414-asoc-tpa6130a2-v1-3-5f4052e656a0@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tpa6130a2.c