OSDN Git Service

mfd: arizona-spi: Split Windows ACPI init code into its own function
authorHans de Goede <hdegoede@redhat.com>
Mon, 7 Mar 2022 17:38:43 +0000 (18:38 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 23 Mar 2022 14:51:50 +0000 (14:51 +0000)
commit3cf2b4344b651b94d62411963e666c9cb5b99e62
tree2de467b257251d36ce1f6b397c405a71a824e9ef
parente84ee1a75f944a0fe3c277aaa10c426603d2b0bc
mfd: arizona-spi: Split Windows ACPI init code into its own function

x86/ACPI boards with an arizona WM5102 codec ship with either Windows or
Android as factory installed OS.

The ACPI fwnode describing the codec differs depending on the factory OS,
and the current arizona_spi_acpi_probe() function is tailored for use
with the Windows board ACPI tables.

Split out the Windows board ACPI tables specific bits into a new
arizona_spi_acpi_windows_probe() function in preparation for also
adding support for the Android board ACPI tables.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220307173844.199135-1-hdegoede@redhat.com
drivers/mfd/arizona-spi.c