Commit cef77d40 authored by Laurent Pinchart's avatar Laurent Pinchart

drm: omapdrm: Switch plane update to atomic helpers

This removes the legacy plane update code. Wire up the default atomic
check and atomic commit mode config helpers as needed by the plane
update atomic helpers.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent f7a73b65
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
* this program. If not, see <http://www.gnu.org/licenses/>. * this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc_helper.h> #include <drm/drm_crtc_helper.h>
#include <drm/drm_fb_helper.h> #include <drm/drm_fb_helper.h>
...@@ -58,6 +59,8 @@ static void omap_fb_output_poll_changed(struct drm_device *dev) ...@@ -58,6 +59,8 @@ static void omap_fb_output_poll_changed(struct drm_device *dev)
static const struct drm_mode_config_funcs omap_mode_config_funcs = { static const struct drm_mode_config_funcs omap_mode_config_funcs = {
.fb_create = omap_framebuffer_create, .fb_create = omap_framebuffer_create,
.output_poll_changed = omap_fb_output_poll_changed, .output_poll_changed = omap_fb_output_poll_changed,
.atomic_check = drm_atomic_helper_check,
.atomic_commit = drm_atomic_helper_commit,
}; };
static int get_connector_type(struct omap_dss_device *dssdev) static int get_connector_type(struct omap_dss_device *dssdev)
......
...@@ -316,8 +316,8 @@ int omap_plane_set_property(struct drm_plane *plane, ...@@ -316,8 +316,8 @@ int omap_plane_set_property(struct drm_plane *plane,
} }
static const struct drm_plane_funcs omap_plane_funcs = { static const struct drm_plane_funcs omap_plane_funcs = {
.update_plane = drm_plane_helper_update, .update_plane = drm_atomic_helper_update_plane,
.disable_plane = drm_plane_helper_disable, .disable_plane = drm_atomic_helper_disable_plane,
.reset = drm_atomic_helper_plane_reset, .reset = drm_atomic_helper_plane_reset,
.destroy = omap_plane_destroy, .destroy = omap_plane_destroy,
.set_property = omap_plane_set_property, .set_property = omap_plane_set_property,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment