pwm: sysfs: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 26 Aug 2022 17:07:13 +0000 (20:07 +0300)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 28 Sep 2022 12:07:53 +0000 (14:07 +0200)
commitf36216724b25f16f2118f3a983d13cafcdc31d5a
treec790d9531832431c1a1e8018397cf2aaae4abd74
parent4b8857c3ca439ec968504f54ff5d60795be55d5d
pwm: sysfs: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()

Using these newer macros allows the compiler to remove the unused
structure and functions when !CONFIG_PM_SLEEP + removes the need to
mark pm functions __maybe_unused.

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