pwm: lpss: Deduplicate board info data structures
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 27 Sep 2022 16:24:15 +0000 (19:24 +0300)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 28 Sep 2022 14:01:30 +0000 (16:01 +0200)
commit090e78d0d8942a56a70ef6d293b5df5141612969
treea78cf5f9321d0a757f32c59faf9a23f08d528088
parent6db87be2e500c63c5030c848004e26f212f4c87c
pwm: lpss: Deduplicate board info data structures

Move the board info structures from the glue drivers to the
common library and hence deduplicate configuration data.

For the Intel Braswell case the ACPI version should be used.
Because switch to ACPI/PCI is done in BIOS while quite likely
the rest of AML code is the same, meaning similar issue might
be observed. There is no bug report due to no PCI enabled device
in the wild, Andy thinks, and only reference boards can be tested,
so nobody really cares about Intel Braswell PCI case.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-lpss-pci.c
drivers/pwm/pwm-lpss-platform.c
drivers/pwm/pwm-lpss.c
drivers/pwm/pwm-lpss.h