From: Tomi Valkeinen Date: Wed, 23 Jul 2025 10:05:18 +0000 (+0300) Subject: drm/bridge: cdns-dsi: Use video mode and clean up cdns_dsi_mode2cfg() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ce4bc5ca7c1de554c3d8c95aa2dddce6cbcef14e;p=users%2Fhch%2Fmisc.git drm/bridge: cdns-dsi: Use video mode and clean up cdns_dsi_mode2cfg() The driver does all the calculations and programming with video timings (hftp, hbp, etc.) instead of the modeline values (hsync_start, ...). Thus it makes sense to use struct videomode instead of struct drm_display_mode internally. Switch to videomode and do some cleanups in cdns_dsi_mode2cfg() along the way. Tested-by: Parth Pancholi Reviewed-by: Aradhya Bhatia Tested-by: Jayesh Choudhary Reviewed-by: Devarsh Thakkar Link: https://lore.kernel.org/r/20250723-cdns-dsi-impro-v5-12-e61cc06074c2@ideasonboard.com Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c b/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c index 6bc0a0d00d69..07f8d5f5c2aa 100644 --- a/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c +++ b/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c @@ -9,6 +9,7 @@ #include #include #include