linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/9] ASoC: codec: cs42l[56,73,52]: Convert to GPIO descriptors
@ 2025-04-28  2:09 Peng Fan (OSS)
  2025-04-28  2:09 ` [PATCH v2 1/9] ASoC: codec: cs42l56: Sort headers alphabetically Peng Fan (OSS)
                   ` (9 more replies)
  0 siblings, 10 replies; 16+ messages in thread
From: Peng Fan (OSS) @ 2025-04-28  2:09 UTC (permalink / raw)
  To: David Rhodes, Richard Fitzgerald, Liam Girdwood, Mark Brown,
	Jaroslav Kysela, Takashi Iwai, Linus Walleij, Bartosz Golaszewski,
	Charles Keepax
  Cc: linux-sound, patches, linux-kernel, linux-gpio, Peng Fan

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/

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
Peng Fan (9):
      ASoC: codec: cs42l56: Sort headers alphabetically
      ASoC: codec: cs42l56: Drop cs42l56.h
      ASoC: codec: cs42l56: Convert to GPIO descriptors
      ASoC: codec: cs42l73: Sort headers alphabetically
      ASoC: codec: cs42l73: Drop cs42l73.h
      ASoC: codec: cs42l73: Convert to GPIO descriptors
      ASoC: codec: cs42l52: Sort headers alphabetically
      ASoC: codec: cs42l52: Drop cs42l52.h
      ASoC: codec: cs42l52: Convert to GPIO descriptors

 include/sound/cs42l52.h    |  29 ------------
 include/sound/cs42l56.h    |  45 ------------------
 include/sound/cs42l73.h    |  19 --------
 sound/soc/codecs/cs42l52.c | 112 ++++++++++++++++++++++++---------------------
 sound/soc/codecs/cs42l56.c |  90 ++++++++++++++++++++++--------------
 sound/soc/codecs/cs42l73.c |  70 +++++++++++++---------------
 6 files changed, 150 insertions(+), 215 deletions(-)
---
base-commit: bc8aa6cdadcc00862f2b5720e5de2e17f696a081
change-id: 20250427-csl42x-0151784a1230

Best regards,
-- 
Peng Fan <peng.fan@nxp.com>


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2025-05-13  9:15 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-28  2:09 [PATCH v2 0/9] ASoC: codec: cs42l[56,73,52]: Convert to GPIO descriptors Peng Fan (OSS)
2025-04-28  2:09 ` [PATCH v2 1/9] ASoC: codec: cs42l56: Sort headers alphabetically Peng Fan (OSS)
2025-04-28  2:09 ` [PATCH v2 2/9] ASoC: codec: cs42l56: Drop cs42l56.h Peng Fan (OSS)
2025-05-05 22:50   ` Mark Brown
2025-05-06  1:13     ` Peng Fan
2025-04-28  2:09 ` [PATCH v2 3/9] ASoC: codec: cs42l56: Convert to GPIO descriptors Peng Fan (OSS)
2025-05-13  9:13   ` Linus Walleij
2025-04-28  2:09 ` [PATCH v2 4/9] ASoC: codec: cs42l73: Sort headers alphabetically Peng Fan (OSS)
2025-04-28  2:09 ` [PATCH v2 5/9] ASoC: codec: cs42l73: Drop cs42l73.h Peng Fan (OSS)
2025-04-28  2:09 ` [PATCH v2 6/9] ASoC: codec: cs42l73: Convert to GPIO descriptors Peng Fan (OSS)
2025-05-13  9:14   ` Linus Walleij
2025-04-28  2:09 ` [PATCH v2 7/9] ASoC: codec: cs42l52: Sort headers alphabetically Peng Fan (OSS)
2025-04-28  2:09 ` [PATCH v2 8/9] ASoC: codec: cs42l52: Drop cs42l52.h Peng Fan (OSS)
2025-04-28  2:09 ` [PATCH v2 9/9] ASoC: codec: cs42l52: Convert to GPIO descriptors Peng Fan (OSS)
2025-05-13  9:14   ` Linus Walleij
2025-05-07 11:12 ` [PATCH v2 0/9] ASoC: codec: cs42l[56,73,52]: " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).