diff options
| author | Noralf Trønnes <noralf@tronnes.org> | 2017-11-06 14:18:11 -0500 |
|---|---|---|
| committer | Noralf Trønnes <noralf@tronnes.org> | 2017-11-30 12:19:15 -0500 |
| commit | 6e8e9a01ec2a35dcb502a216d5c84452ebbed90c (patch) | |
| tree | d7bace26cd73965e611c908432fc9b6f8d6ce6dd /include | |
| parent | 194b8799d27cd61bbc6da4e3ed333de261c07407 (diff) | |
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
Diffstat (limited to 'include')
| -rw-r--r-- | include/drm/tinydrm/tinydrm.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/drm/tinydrm/tinydrm.h b/include/drm/tinydrm/tinydrm.h index 423828922e5a..03cd9d72308c 100644 --- a/include/drm/tinydrm/tinydrm.h +++ b/include/drm/tinydrm/tinydrm.h | |||
| @@ -20,7 +20,6 @@ | |||
| 20 | * @pipe: Display pipe structure | 20 | * @pipe: Display pipe structure |
| 21 | * @dirty_lock: Serializes framebuffer flushing | 21 | * @dirty_lock: Serializes framebuffer flushing |
| 22 | * @fbdev_cma: CMA fbdev structure | 22 | * @fbdev_cma: CMA fbdev structure |
| 23 | * @suspend_state: Atomic state when suspended | ||
| 24 | * @fb_funcs: Framebuffer functions used when creating framebuffers | 23 | * @fb_funcs: Framebuffer functions used when creating framebuffers |
| 25 | */ | 24 | */ |
| 26 | struct tinydrm_device { | 25 | struct tinydrm_device { |
| @@ -28,7 +27,6 @@ struct tinydrm_device { | |||
| 28 | struct drm_simple_display_pipe pipe; | 27 | struct drm_simple_display_pipe pipe; |
| 29 | struct mutex dirty_lock; | 28 | struct mutex dirty_lock; |
| 30 | struct drm_fbdev_cma *fbdev_cma; | 29 | struct drm_fbdev_cma *fbdev_cma; |
| 31 | struct drm_atomic_state *suspend_state; | ||
| 32 | const struct drm_framebuffer_funcs *fb_funcs; | 30 | const struct drm_framebuffer_funcs *fb_funcs; |
| 33 | }; | 31 | }; |
| 34 | 32 | ||
| @@ -93,8 +91,6 @@ int devm_tinydrm_init(struct device *parent, struct tinydrm_device *tdev, | |||
| 93 | struct drm_driver *driver); | 91 | struct drm_driver *driver); |
| 94 | int devm_tinydrm_register(struct tinydrm_device *tdev); | 92 | int devm_tinydrm_register(struct tinydrm_device *tdev); |
| 95 | void tinydrm_shutdown(struct tinydrm_device *tdev); | 93 | void tinydrm_shutdown(struct tinydrm_device *tdev); |
| 96 | int tinydrm_suspend(struct tinydrm_device *tdev); | ||
| 97 | int tinydrm_resume(struct tinydrm_device *tdev); | ||
| 98 | 94 | ||
| 99 | void tinydrm_display_pipe_update(struct drm_simple_display_pipe *pipe, | 95 | void tinydrm_display_pipe_update(struct drm_simple_display_pipe *pipe, |
| 100 | struct drm_plane_state *old_state); | 96 | struct drm_plane_state *old_state); |
