linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] adv7511: Added mode_fixup function.
@ 2016-01-29 10:33 Carlos Palminha
  2016-01-29 17:48 ` Laurent Pinchart
  0 siblings, 1 reply; 8+ messages in thread
From: Carlos Palminha @ 2016-01-29 10:33 UTC (permalink / raw)
  To: dri-devel; +Cc: Carlos Palminha, linux-kernel, David Airlie, Laurent Pinchart

The mode_fixup is necessary when using it in a DRM FB driver pipeline.

Signed-off-by: Carlos Palminha <palminha@synopsys.com>
---
 drivers/gpu/drm/i2c/adv7511.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/gpu/drm/i2c/adv7511.c b/drivers/gpu/drm/i2c/adv7511.c
index 533d1e3..90082d2 100644
--- a/drivers/gpu/drm/i2c/adv7511.c
+++ b/drivers/gpu/drm/i2c/adv7511.c
@@ -648,6 +648,13 @@ adv7511_encoder_detect(struct drm_encoder *encoder,
 	return status;
 }
 
+static bool adv7511_encoder_mode_fixup(struct drm_encoder *encoder,
+					const struct drm_display_mode *mode,
+					struct drm_display_mode *adjusted_mode)
+{
+	return true;
+}
+
 static int adv7511_encoder_mode_valid(struct drm_encoder *encoder,
 				      struct drm_display_mode *mode)
 {
@@ -754,6 +761,7 @@ static void adv7511_encoder_mode_set(struct drm_encoder *encoder,
 
 static const struct drm_encoder_slave_funcs adv7511_encoder_funcs = {
 	.dpms = adv7511_encoder_dpms,
+	.mode_fixup = adv7511_encoder_mode_fixup,
 	.mode_valid = adv7511_encoder_mode_valid,
 	.mode_set = adv7511_encoder_mode_set,
 	.detect = adv7511_encoder_detect,
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-02-10 12:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-29 10:33 [PATCH] adv7511: Added mode_fixup function Carlos Palminha
2016-01-29 17:48 ` Laurent Pinchart
2016-02-01 12:37   ` Carlos Palminha
2016-02-04 15:22     ` Carlos Palminha
2016-02-04 20:27       ` Lars-Peter Clausen
2016-02-09  9:24         ` Daniel Vetter
2016-02-10 10:19           ` Carlos Palminha
2016-02-10 12:17             ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).