diff options
author | Dhruva Gole <d-gole@ti.com> | 2023-04-24 15:55:46 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-04-25 16:55:45 +0100 |
commit | cc5f6fa4f6590e3b9eb8d34302ea43af4a3cfed7 (patch) | |
tree | f3549b08405e957447378bd95931bba174d5124c /drivers/mtd/devices | |
parent | d9f3a60ebbbd7244fe532dc8dcd278ac1651247f (diff) | |
download | linux-stable-cc5f6fa4f6590e3b9eb8d34302ea43af4a3cfed7.tar.gz linux-stable-cc5f6fa4f6590e3b9eb8d34302ea43af4a3cfed7.tar.bz2 linux-stable-cc5f6fa4f6590e3b9eb8d34302ea43af4a3cfed7.zip |
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: Dhruva Gole <d-gole@ti.com>
Link: https://lore.kernel.org/r/20230424102546.1604484-1-d-gole@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/mtd/devices')
0 files changed, 0 insertions, 0 deletions