Skip to content

Commit b3e7be6

Browse files
Carlos Palminhadanvet
authored andcommitted
drm/i2c/tda998x: removed unnecessary code, mode_fixup is now optional.
Removed dummy mode_fixup. Signed-off-by: Carlos Palminha <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 7736591 commit b3e7be6

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

drivers/gpu/drm/i2c/tda998x_drv.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -856,14 +856,6 @@ static void tda998x_encoder_dpms(struct drm_encoder *encoder, int mode)
856856
priv->dpms = mode;
857857
}
858858

859-
static bool
860-
tda998x_encoder_mode_fixup(struct drm_encoder *encoder,
861-
const struct drm_display_mode *mode,
862-
struct drm_display_mode *adjusted_mode)
863-
{
864-
return true;
865-
}
866-
867859
static int tda998x_connector_mode_valid(struct drm_connector *connector,
868860
struct drm_display_mode *mode)
869861
{
@@ -1343,7 +1335,6 @@ static void tda998x_encoder_commit(struct drm_encoder *encoder)
13431335

13441336
static const struct drm_encoder_helper_funcs tda998x_encoder_helper_funcs = {
13451337
.dpms = tda998x_encoder_dpms,
1346-
.mode_fixup = tda998x_encoder_mode_fixup,
13471338
.prepare = tda998x_encoder_prepare,
13481339
.commit = tda998x_encoder_commit,
13491340
.mode_set = tda998x_encoder_mode_set,

0 commit comments

Comments
 (0)