static int rotator_runtime_resume(struct device *dev) { struct rot_context *rot = dev_get_drvdata(dev); DRM_DEBUG_KMS("%s\n", __func__); return rotator_clk_crtl(rot, true); }
static int rotator_resume(struct device *dev) { struct rot_context *rot = dev_get_drvdata(dev); if (!pm_runtime_suspended(dev)) return rotator_clk_crtl(rot, true); return 0; }
static int rotator_suspend(struct device *dev) { struct rot_context *rot = dev_get_drvdata(dev); if (pm_runtime_suspended(dev)) return 0; return rotator_clk_crtl(rot, false); }
static int rotator_runtime_resume(struct device *dev) { struct rot_context *rot = dev_get_drvdata(dev); return rotator_clk_crtl(rot, true); }