Skip to content
Unverified Commit cc5f6fa4 authored by Dhruva Gole's avatar Dhruva Gole Committed by Mark Brown
Browse files

spi: bcm63xx: use macro DEFINE_SIMPLE_DEV_PM_OPS



Using this macro makes the code more readable.
It also inits the members of dev_pm_ops in the following manner
without us explicitly needing to:

.suspend = bcm63xx_spi_suspend, \
.resume = bcm63xx_spi_resume, \
.freeze = bcm63xx_spi_suspend, \
.thaw = bcm63xx_spi_resume, \
.poweroff = bcm63xx_spi_suspend, \
.restore = bcm63xx_spi_resume

Signed-off-by: default avatarDhruva Gole <d-gole@ti.com>
Link: https://lore.kernel.org/r/20230424102546.1604484-1-d-gole@ti.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d9f3a60e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment