ASoC: codec: cs42l[56,73,52]: Convert to GPIO
authorMark Brown <broonie@kernel.org>
Wed, 7 May 2025 05:12:15 +0000 (14:12 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 7 May 2025 05:12:15 +0000 (14:12 +0900)
commit599b86f8cf98f786e317039372fe4cb446f0fa2a
tree6a3aff31557366cd41135afedfa4e50e506c1a06
parentad6d689e776478113aeef7bfb0e4222b1ff2a986
parent5bf5bdfd007e07f2ec5b3e07aa02616f4eebef67
ASoC: codec: cs42l[56,73,52]: Convert to GPIO

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

This patchset is separate from [1], and not merging changes in one
patch. So separate changes into three patches for each chip.
- sort headers
- Drop legacy platform support
- 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_cansleep to configure output value.

I not have platforms to test, just do the patches with my best efforts,
and make build pass.

[1] https://lore.kernel.org/all/20250408-asoc-gpio-v1-0-c0db9d3fd6e9@nxp.com/