ASoC/extcon: arizona: Move arizona jack code to sound/soc/codecs/arizona-jack.c
authorHans de Goede <hdegoede@redhat.com>
Sun, 7 Mar 2021 15:18:00 +0000 (16:18 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 18 Mar 2021 11:46:15 +0000 (11:46 +0000)
commita908a716696eee75bf85199cde2b0989290536d1
tree72e625a79ea5c29d738bac848b5c08c0fa866749
parent505eb8df97d9a6c51f5168f69984d116e9c27470
ASoC/extcon: arizona: Move arizona jack code to sound/soc/codecs/arizona-jack.c

The jack handling for arizona codecs is being refactored so that it is
done directly by the codec drivers, instead of having an extcon-driver
bind to a separate "arizona-extcon" child-device for this.

drivers/mfd/arizona-core.c has already been updated to no longer
instantiate an "arizona-extcon" child-device for the arizona codecs.

This means that the "arizona-extcon" driver is no longer useful
(there are no longer any devices for it to bind to).

This commit drops the extcon Kconfig / Makefile bits and moves
drivers/extcon/extcon-arizona.c to sound/soc/codecs/arizona-jack.c .

This is a preparation patch for converting the arizona extcon-driver into
a helper library for letting the arizona codec-drivers directly report jack
state through the standard sound/soc/soc-jack.c functions.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Tested-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
MAINTAINERS
drivers/extcon/Kconfig
drivers/extcon/Makefile
sound/soc/codecs/arizona-jack.c [moved from drivers/extcon/extcon-arizona.c with 100% similarity]