[PATCH] drm/gma500: Make use of the helper macro SET_RUNTIME_PM_OPS()
Cai Huoqing
caihuoqing at baidu.com
Sat Aug 28 08:43:34 UTC 2021
Use the helper macro SET_RUNTIME_PM_OPS() instead of the verbose
operators ".runtime_suspend/.runtime_resume/.runtime_idle", because
the SET_RUNTIME_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 at baidu.com>
---
drivers/gpu/drm/gma500/psb_drv.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c
index 58bce1a60a4d..d5bfa1d5c074 100644
--- a/drivers/gpu/drm/gma500/psb_drv.c
+++ b/drivers/gpu/drm/gma500/psb_drv.c
@@ -489,14 +489,12 @@ static void psb_pci_remove(struct pci_dev *pdev)
}
static const struct dev_pm_ops psb_pm_ops = {
+ SET_RUNTIME_PM_OPS(psb_runtime_suspend, psb_runtime_resume, psb_runtime_idle)
.resume = gma_power_resume,
.suspend = gma_power_suspend,
.thaw = gma_power_thaw,
.freeze = gma_power_freeze,
.restore = gma_power_restore,
- .runtime_suspend = psb_runtime_suspend,
- .runtime_resume = psb_runtime_resume,
- .runtime_idle = psb_runtime_idle,
};
static const struct file_operations psb_gem_fops = {
--
2.25.1
More information about the dri-devel
mailing list