Skip to content

Commit 22a4414

Browse files
committed
drm: renesas: shmobile: Cleanup encoder
Most unused callbacks can be NULL pointers these days. Drop a bunch of empty encoder callbacks. Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/04f186573e1df90ecc051272f3d1cbe564c3469b.1694767209.git.geert+renesas@glider.be
1 parent fbe544f commit 22a4414

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -534,11 +534,6 @@ int shmob_drm_crtc_create(struct shmob_drm_device *sdev)
534534
* Encoder
535535
*/
536536

537-
static void shmob_drm_encoder_dpms(struct drm_encoder *encoder, int mode)
538-
{
539-
/* No-op, everything is handled in the CRTC code. */
540-
}
541-
542537
static bool shmob_drm_encoder_mode_fixup(struct drm_encoder *encoder,
543538
const struct drm_display_mode *mode,
544539
struct drm_display_mode *adjusted_mode)
@@ -561,29 +556,8 @@ static bool shmob_drm_encoder_mode_fixup(struct drm_encoder *encoder,
561556
return true;
562557
}
563558

564-
static void shmob_drm_encoder_mode_prepare(struct drm_encoder *encoder)
565-
{
566-
/* No-op, everything is handled in the CRTC code. */
567-
}
568-
569-
static void shmob_drm_encoder_mode_set(struct drm_encoder *encoder,
570-
struct drm_display_mode *mode,
571-
struct drm_display_mode *adjusted_mode)
572-
{
573-
/* No-op, everything is handled in the CRTC code. */
574-
}
575-
576-
static void shmob_drm_encoder_mode_commit(struct drm_encoder *encoder)
577-
{
578-
/* No-op, everything is handled in the CRTC code. */
579-
}
580-
581559
static const struct drm_encoder_helper_funcs encoder_helper_funcs = {
582-
.dpms = shmob_drm_encoder_dpms,
583560
.mode_fixup = shmob_drm_encoder_mode_fixup,
584-
.prepare = shmob_drm_encoder_mode_prepare,
585-
.commit = shmob_drm_encoder_mode_commit,
586-
.mode_set = shmob_drm_encoder_mode_set,
587561
};
588562

589563
int shmob_drm_encoder_create(struct shmob_drm_device *sdev)

0 commit comments

Comments
 (0)