spi: rpc-if: Drop deprecated SIMPLE_DEV_PM_OPS
authorBiju Das <biju.das.jz@bp.renesas.com>
Sun, 21 Sep 2025 11:26:45 +0000 (12:26 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 22 Sep 2025 08:21:17 +0000 (09:21 +0100)
commit81ef2022b311c7c4f29011f778442635acfaba90
treef05be4b1c0f79aea7690fc31c65ee293df2d6b2d
parent07e27ad16399afcd693be20211b0dfae63e0615f
spi: rpc-if: Drop deprecated SIMPLE_DEV_PM_OPS

Replace SIMPLE_DEV_PM_OPS->DEFINE_SIMPLE_DEV_PM_OPS macro and use
pm_sleep_ptr(). This lets us drop the check for CONFIG_PM_SLEEP, and
reduces kernel size in case CONFIG_PM or CONFIG_PM_SLEEP is disabled,
while increasing build coverage.

Also drop the __maybe_unused attribute from PM functions.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://patch.msgid.link/20250921112649.104516-2-biju.das.jz@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rpc-if.c