mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
drm/tinydrm: Use drm_mode_config_helper_suspend/resume()
Replace driver's code with the generic helpers that do the same thing. Remove todo entry. Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Reviewed-by: Stefan Agner <stefan@agner.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20171106191812.38927-6-noralf@tronnes.org
This commit is contained in:
parent
194b8799d2
commit
6e8e9a01ec
4 changed files with 5 additions and 78 deletions
|
@ -9,6 +9,7 @@
|
|||
* (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include <drm/drm_modeset_helper.h>
|
||||
#include <drm/tinydrm/ili9341.h>
|
||||
#include <drm/tinydrm/mipi-dbi.h>
|
||||
#include <drm/tinydrm/tinydrm-helpers.h>
|
||||
|
@ -231,7 +232,7 @@ static int __maybe_unused mi0283qt_pm_suspend(struct device *dev)
|
|||
struct mipi_dbi *mipi = dev_get_drvdata(dev);
|
||||
int ret;
|
||||
|
||||
ret = tinydrm_suspend(&mipi->tinydrm);
|
||||
ret = drm_mode_config_helper_suspend(mipi->tinydrm.drm);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
@ -249,7 +250,9 @@ static int __maybe_unused mi0283qt_pm_resume(struct device *dev)
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
return tinydrm_resume(&mipi->tinydrm);
|
||||
drm_mode_config_helper_resume(mipi->tinydrm.drm);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct dev_pm_ops mi0283qt_pm_ops = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue