diff options
| author | Laurent Pinchart <[email protected]> | 2020-02-26 11:24:42 +0000 |
|---|---|---|
| committer | Tomi Valkeinen <[email protected]> | 2020-02-26 11:31:45 +0000 |
| commit | 1516d11923d0f9f5db88041e8c4e097a59af0d5f (patch) | |
| tree | 5417d535f60e4e6f0d31964bcbd0eaf38e6af621 /drivers/gpu/drm/omapdrm/omap_encoder.c | |
| parent | drm/omap: dss: Cleanup DSS ports on initialisation failure (diff) | |
| download | kernel-1516d11923d0f9f5db88041e8c4e097a59af0d5f.tar.gz kernel-1516d11923d0f9f5db88041e8c4e097a59af0d5f.zip | |
drm/omap: Simplify HDMI mode and infoframe configuration
Remove the omap_connector_get_hdmi_mode() function as the HDMI mode can
be accessed directly from the connector's display info.
Signed-off-by: Laurent Pinchart <[email protected]>
Reviewed-by: Tomi Valkeinen <[email protected]>
Acked-by: Sam Ravnborg <[email protected]>
Tested-by: Sebastian Reichel <[email protected]>
Reviewed-by: Sebastian Reichel <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_encoder.c')
| -rw-r--r-- | drivers/gpu/drm/omapdrm/omap_encoder.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_encoder.c b/drivers/gpu/drm/omapdrm/omap_encoder.c index 4f2165a37795..cb5aa01d2f87 100644 --- a/drivers/gpu/drm/omapdrm/omap_encoder.c +++ b/drivers/gpu/drm/omapdrm/omap_encoder.c @@ -76,9 +76,7 @@ static void omap_encoder_hdmi_mode_set(struct drm_connector *connector, { struct omap_encoder *omap_encoder = to_omap_encoder(encoder); struct omap_dss_device *dssdev = omap_encoder->output; - bool hdmi_mode; - - hdmi_mode = omap_connector_get_hdmi_mode(connector); + bool hdmi_mode = connector->display_info.is_hdmi; if (dssdev->ops->hdmi.set_hdmi_mode) dssdev->ops->hdmi.set_hdmi_mode(dssdev, hdmi_mode); |
