]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: codec: wcd93xx: Convert to GPIO descriptors
authorMark Brown <broonie@kernel.org>
Tue, 8 Apr 2025 09:25:12 +0000 (10:25 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 8 Apr 2025 09:25:12 +0000 (10:25 +0100)
commit94112d3d9422d59a5d4230802ce46a27e1bc5226
tree11fe5ba951f901eb1fd04173c4bf7e1317d20c97
parent1f4db3cb1a5984cf1b845a82f66f53947ffad6e5
parentd5099bc1b56417733f4cccf10c61ee74dadd5562
ASoC: codec: wcd93xx: Convert to GPIO descriptors

Merge series from "Peng Fan (OSS)" <peng.fan@oss.nxp.com>:

of_gpio.h is deprecated, so update driver to use gpiod API.

The current driver use value 0 to assert reset and 1 to deassert reset.
The DTSes in tree that use the codec are using GPIO_ACTIVE_LOW.
So it is safe to use devm_gpiod_get to get GPIO descriptors and
use gpiod_set_value to configure output with value 1 means raw value
0, value 0 means raw value 1.

Note:
I not have devices to test, just my best pratice to do the convertion.