aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/drm/drm_of.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2019-10-16 02:06:52 +0300
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2019-12-18 02:40:11 +0200
commit593885b085d699c9f49992c3ea50f372e0c7008d (patch)
treef1a7395c629b3455cc6699960c309c9b253225cc /include/drm/drm_of.h
parentdrm: rcar-du: Recognize "renesas,vsps" in addition to "vsps" (diff)
downloadwireguard-linux-593885b085d699c9f49992c3ea50f372e0c7008d.tar.xz
wireguard-linux-593885b085d699c9f49992c3ea50f372e0c7008d.zip
drm: rcar-du: lvds: Get mode from state
The R-Car LVDS encoder driver implements the bridge .mode_set() operation for the sole purpose of storing the mode in the LVDS private data, to be used later when enabling the encoder. Switch to the bridge .atomic_enable() and .atomic_disable() operations in order to access the global atomic state, and get the mode from the state instead. Remove both the unneeded .mode_set() operation and the display_mode and mode fields storing state data from the rcar_lvds private structure. As a side effect we get the CRTC from the state, replace the CRTC pointer retrieved through the bridge's encoder that shouldn't be used by atomic drivers. While at it, clarify a few error messages in rcar_lvds_get_lvds_mode() and turn them into warnings as they are not fatal. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com> Tested-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Diffstat (limited to 'include/drm/drm_of.h')
0 files changed, 0 insertions, 0 deletions