Re: [PATCH] spi: bcm63xx: use macro DEFINE_SIMPLE_DEV_PM_OPS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 24 Apr 2023 at 12:25, Dhruva Gole <d-gole@xxxxxx> wrote:
>
> 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@xxxxxx>

I think this should have an appropriate Fixes tag as it will fix a
build warning when building with !CONFIG_PM after applying the
previous patch.

Regards
Jonas



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux