Commit d97db134 authored by Laurent Pinchart's avatar Laurent Pinchart

drm: omapdrm: Replace encoder mode_fixup with atomic_check

The encoder .mode_fixup() operation is legacy, atomic updates uses the
new .atomic_check() operation. Convert the encoder driver.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent aea3cab1
...@@ -62,13 +62,6 @@ static const struct drm_encoder_funcs omap_encoder_funcs = { ...@@ -62,13 +62,6 @@ static const struct drm_encoder_funcs omap_encoder_funcs = {
.destroy = omap_encoder_destroy, .destroy = omap_encoder_destroy,
}; };
static bool omap_encoder_mode_fixup(struct drm_encoder *encoder,
const struct drm_display_mode *mode,
struct drm_display_mode *adjusted_mode)
{
return true;
}
static void omap_encoder_mode_set(struct drm_encoder *encoder, static void omap_encoder_mode_set(struct drm_encoder *encoder,
struct drm_display_mode *mode, struct drm_display_mode *mode,
struct drm_display_mode *adjusted_mode) struct drm_display_mode *adjusted_mode)
...@@ -117,11 +110,18 @@ static void omap_encoder_enable(struct drm_encoder *encoder) ...@@ -117,11 +110,18 @@ static void omap_encoder_enable(struct drm_encoder *encoder)
{ {
} }
static int omap_encoder_atomic_check(struct drm_encoder *encoder,
struct drm_crtc_state *crtc_state,
struct drm_connector_state *conn_state)
{
return 0;
}
static const struct drm_encoder_helper_funcs omap_encoder_helper_funcs = { static const struct drm_encoder_helper_funcs omap_encoder_helper_funcs = {
.mode_fixup = omap_encoder_mode_fixup,
.mode_set = omap_encoder_mode_set, .mode_set = omap_encoder_mode_set,
.disable = omap_encoder_disable, .disable = omap_encoder_disable,
.enable = omap_encoder_enable, .enable = omap_encoder_enable,
.atomic_check = omap_encoder_atomic_check,
}; };
/* /*
......
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