mfd: intel-lpss: Provide Intel LPSS PM ops structure
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 24 Nov 2023 19:31:28 +0000 (21:31 +0200)
committerLee Jones <lee@kernel.org>
Thu, 7 Dec 2023 13:50:29 +0000 (13:50 +0000)
commitfd58bb8c7da3c2d4314d7ab76402ca18e9cc0afa
treea36c747a3e0938785dd3f53d0e4377df2af7bfc8
parent24ee97a9e816a333688141eed2fbbb2d5e60b5d1
mfd: intel-lpss: Provide Intel LPSS PM ops structure

With the help of EXPORT_NS_GPL_DEV_PM_OPS() and other *_PM_OPS() macros
we may convert PM ops functions to become static. This also takes into
account the PM configuration options such as CONFIG_PM and CONFIG_PM_SLEEP.
This all removes a lot of ugly macros and ifdeffery in the driver.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231124200258.3682979-6-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/intel-lpss-acpi.c
drivers/mfd/intel-lpss-pci.c
drivers/mfd/intel-lpss.c
drivers/mfd/intel-lpss.h