pwm: lpss: Properly split driver to parts
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 29 Oct 2014 00:52:56 +0000 (08:52 +0800)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:25:24 +0000 (09:25 +0900)
commit8ddb19a823b4c61c4e3c5a42b4971629350c57c2
tree000dfdc32792f14acce7894f8b7f5badd732d716
parent02da1e6b13767e88b8cb1c83c0bc50ee38be70f1
pwm: lpss: Properly split driver to parts

The driver consists of core, PCI, and platform parts. It would be better
to split them into separate files.

The platform driver is now called pwm-lpss-platform. Thus, previously
set CONFIG_PWM_LPSS=m is not enough to build it. But we are on the safe
side since it seems no one from outside Intel is using it for now.

While here, move to use macros module_pci_driver() and
module_platform_driver().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Alan Cox <alan@linux.intel.com>
[thierry.reding: change select to depends on PWM_LPSS, cleanup]
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
(cherry picked from commit c558e39e14c2372394f49e07fbe94e9708b615cb)

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
drivers/pwm/Kconfig
drivers/pwm/Makefile
drivers/pwm/pwm-lpss-pci.c [new file with mode: 0644]
drivers/pwm/pwm-lpss-platform.c [new file with mode: 0644]
drivers/pwm/pwm-lpss.c
drivers/pwm/pwm-lpss.h [new file with mode: 0644]