diff options
author | Liu Ying <gnuiyl@gmail.com> | 2016-07-08 05:40:56 -0400 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2016-07-12 12:23:51 -0400 |
commit | 255c35f8fe6a9c345320e512c681c03678f3e0b4 (patch) | |
tree | c5062294416afa3e89f06163fc5fe4decdd8e064 /drivers/gpu/drm/imx/imx-ldb.c | |
parent | 33f14235302f561b1db713c1bd8111a512bf2568 (diff) |
drm/imx: atomic phase 2 step 1: Wire up state ->reset, ->duplicate and ->destroy
Wire up CRTCs', planes' and connectors' ->reset, ->duplicate and ->destroy state
hooks to use the default implementations from the atomic helper library.
The helpers track each DRM object state.
Signed-off-by: Liu Ying <gnuiyl@gmail.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/imx/imx-ldb.c')
-rw-r--r-- | drivers/gpu/drm/imx/imx-ldb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/imx/imx-ldb.c b/drivers/gpu/drm/imx/imx-ldb.c index beff793bb717..12bf368ae6df 100644 --- a/drivers/gpu/drm/imx/imx-ldb.c +++ b/drivers/gpu/drm/imx/imx-ldb.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/clk.h> | 17 | #include <linux/clk.h> |
18 | #include <linux/component.h> | 18 | #include <linux/component.h> |
19 | #include <drm/drmP.h> | 19 | #include <drm/drmP.h> |
20 | #include <drm/drm_atomic_helper.h> | ||
20 | #include <drm/drm_fb_helper.h> | 21 | #include <drm/drm_fb_helper.h> |
21 | #include <drm/drm_crtc_helper.h> | 22 | #include <drm/drm_crtc_helper.h> |
22 | #include <drm/drm_of.h> | 23 | #include <drm/drm_of.h> |
@@ -362,6 +363,9 @@ static const struct drm_connector_funcs imx_ldb_connector_funcs = { | |||
362 | .fill_modes = drm_helper_probe_single_connector_modes, | 363 | .fill_modes = drm_helper_probe_single_connector_modes, |
363 | .detect = imx_ldb_connector_detect, | 364 | .detect = imx_ldb_connector_detect, |
364 | .destroy = imx_drm_connector_destroy, | 365 | .destroy = imx_drm_connector_destroy, |
366 | .reset = drm_atomic_helper_connector_reset, | ||
367 | .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state, | ||
368 | .atomic_destroy_state = drm_atomic_helper_connector_destroy_state, | ||
365 | }; | 369 | }; |
366 | 370 | ||
367 | static const struct drm_connector_helper_funcs imx_ldb_connector_helper_funcs = { | 371 | static const struct drm_connector_helper_funcs imx_ldb_connector_helper_funcs = { |