summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/rcar-du
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2023-02-14 00:07:18 +0100
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2023-03-25 21:38:09 +0100
commitc95e2ad9594adf1e8088ead38420179942b5c264 (patch)
tree032a7b6ca7b0d8af54c32fce1b1018064796f154 /drivers/gpu/drm/rcar-du
parentMerge tag 'drm-intel-next-2023-03-23' of git://anongit.freedesktop.org/drm/dr... (diff)
downloadlinux-c95e2ad9594adf1e8088ead38420179942b5c264.tar.xz
linux-c95e2ad9594adf1e8088ead38420179942b5c264.zip
drm: rcar-du: lvds: Call function directly instead of through pointer
When disabling the companion bridge in rcar_lvds_atomic_disable(), there's no need to go through the bridge's operations to call .atomic_disable(). Call rcar_lvds_atomic_disable() on the companion directly. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Tomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>
Diffstat (limited to 'drivers/gpu/drm/rcar-du')
-rw-r--r--drivers/gpu/drm/rcar-du/rcar_lvds.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_lvds.c b/drivers/gpu/drm/rcar-du/rcar_lvds.c
index 260ea5d8624e..61de18af62e6 100644
--- a/drivers/gpu/drm/rcar-du/rcar_lvds.c
+++ b/drivers/gpu/drm/rcar-du/rcar_lvds.c
@@ -582,8 +582,7 @@ static void rcar_lvds_atomic_disable(struct drm_bridge *bridge,
/* Disable the companion LVDS encoder in dual-link mode. */
if (lvds->link_type != RCAR_LVDS_SINGLE_LINK && lvds->companion)
- lvds->companion->funcs->atomic_disable(lvds->companion,
- old_bridge_state);
+ rcar_lvds_atomic_disable(lvds->companion, old_bridge_state);
pm_runtime_put_sync(lvds->dev);
}