]> git.itanic.dy.fi Git - linux-stable/commit
ASoC: wm5100: Convert to GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 8 Dec 2023 10:09:28 +0000 (11:09 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 8 Dec 2023 14:31:59 +0000 (14:31 +0000)
commit8563cfe39ba5d00d974df25e310fb61b5b3687e1
tree091309dc5d56266b559d7f224fa7d8aa923291cf
parent0119b2a24eb592f967a2849b772887c96617ad80
ASoC: wm5100: Convert to GPIO descriptors

This converts the WM5100 codec to use GPIO descriptors, a pretty
straight-forward conversion with the following peculiarities:

- The driver is instantiating a GPIO chip named wm5100, and the
  headphone polarity detection GPIO is lifted from there. We add
  this to the GPIO descriptor table as well, and we can then get
  rid of also the base address for the GPIO chip from the
  platform data and just use dynamic numbering.

- Fix up the only in-tree user which is the Cragganmore 6410
  module.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20231208-descriptors-sound-wlf-v1-4-c4dab6f521ec@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/arm/mach-s3c/mach-crag6410-module.c
include/sound/wm5100.h
sound/soc/codecs/wm5100.c