pwm: dwc: split pci out of core driver
authorBen Dooks <ben.dooks@codethink.co.uk>
Thu, 7 Sep 2023 16:12:37 +0000 (17:12 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 13 Oct 2023 08:07:17 +0000 (10:07 +0200)
commit721ee188488381f0c2d4e04fbc2200963fda23b7
tree08a42e5e25e56bb0df128fcf84808ac13f49a216
parent6dbf23f5cfff789ee7c75a79709f06bcb3c6fc20
pwm: dwc: split pci out of core driver

Moving towards adding non-pci support for the driver, move the pci
parts out of the core into their own module. This is partly due to
the module_driver() code only being allowed once in a module and also
to avoid a number of #ifdef if we build a single file in a system
without pci support.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230907161242.67190-2-ben.dooks@codethink.co.uk
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/Kconfig
drivers/pwm/Makefile
drivers/pwm/pwm-dwc-core.c [new file with mode: 0644]
drivers/pwm/pwm-dwc.c
drivers/pwm/pwm-dwc.h [new file with mode: 0644]