]> www.infradead.org Git - users/jedix/linux-maple.git/commit
serial: sh-sci: Convert to DEFINE_SIMPLE_DEV_PM_OPS()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 9 Jul 2025 19:01:20 +0000 (21:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2025 09:05:33 +0000 (11:05 +0200)
commit65acd0d86f2fa104fc0a0c9d86aa1ee6b1a4763e
treea8551846e2430b5cbf775dae92704f70864e3a27
parent0666e3fe95ab55c295984f2f51277ec27d3f190c
serial: sh-sci: Convert to DEFINE_SIMPLE_DEV_PM_OPS()

Convert the Renesas SuperH SCI(F) serial port driver from
SIMPLE_DEV_PM_OPS() to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr().
This lets us drop the __maybe_unused annotations from its suspend and
resume callbacks, and reduces kernel size in case CONFIG_PM or
CONFIG_PM_SLEEP is disabled.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/a5628fe028362ae3f8729021a7864dd39f7869bf.1752086885.git.geert+renesas@glider.be
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c