mirror of
https://github.com/brain-hackers/linux-brain.git
synced 2024-06-09 07:16:21 +09:00
MLK-23576 gpu/imx: lcdifv3: add system sleep PM ops
To support system suspend and resume, the system sleep PM ops of suspend and resume are required to be added for LCDIFv3 display. Signed-off-by: Fancy Fang <chen.fang@nxp.com> Reviewed-by: Robby Cai <robby.cai@nxp.com>
This commit is contained in:
parent
10abba22b3
commit
40a94ac801
|
@ -743,7 +743,20 @@ static int imx_lcdifv3_runtime_resume(struct device *dev)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
static int imx_lcdifv3_suspend(struct device *dev)
|
||||
{
|
||||
return imx_lcdifv3_runtime_suspend(dev);
|
||||
}
|
||||
|
||||
static int imx_lcdifv3_resume(struct device *dev)
|
||||
{
|
||||
return imx_lcdifv3_runtime_resume(dev);
|
||||
}
|
||||
#endif
|
||||
|
||||
static const struct dev_pm_ops imx_lcdifv3_pm_ops = {
|
||||
SET_SYSTEM_SLEEP_PM_OPS(imx_lcdifv3_suspend, imx_lcdifv3_resume)
|
||||
SET_RUNTIME_PM_OPS(imx_lcdifv3_runtime_suspend,
|
||||
imx_lcdifv3_runtime_resume, NULL)
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user