mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
dmaengine: sa11x0: Make use of the helper macro SET_NOIRQ_SYSTEM_SLEEP_PM_OPS()
Use the helper macro SET_NOIRQ_SYSTEM_SLEEP_PM_OPS() instead of the verbose operators ".suspend_noirq /.resume_noirq/.freeze_noirq/ .thaw_noirq/.poweroff_noirq/.restore_noirq", because the SET_NOIRQ_SYSTEM_SLEEP_PM_OPS() is a nice helper macro that could be brought in to make code a little clearer, a little more concise. Signed-off-by: Cai Huoqing <caihuoqing@baidu.com> Link: https://lore.kernel.org/r/20210828090117.1814-1-caihuoqing@baidu.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
e530a9f3db
commit
7789e3464c
@ -1072,12 +1072,7 @@ static int sa11x0_dma_resume(struct device *dev)
|
||||
}
|
||||
|
||||
static const struct dev_pm_ops sa11x0_dma_pm_ops = {
|
||||
.suspend_noirq = sa11x0_dma_suspend,
|
||||
.resume_noirq = sa11x0_dma_resume,
|
||||
.freeze_noirq = sa11x0_dma_suspend,
|
||||
.thaw_noirq = sa11x0_dma_resume,
|
||||
.poweroff_noirq = sa11x0_dma_suspend,
|
||||
.restore_noirq = sa11x0_dma_resume,
|
||||
SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(sa11x0_dma_suspend, sa11x0_dma_resume)
|
||||
};
|
||||
|
||||
static struct platform_driver sa11x0_dma_driver = {
|
||||
|
Loading…
Reference in New Issue
Block a user