aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>2025-02-04 14:40:05 +0200
committerHeiko Stuebner <heiko@sntech.de>2025-02-06 11:57:53 +0100
commit9f40d7a94427a503e303b2a2d8db227d615e32c1 (patch)
tree7f0cf552757435c0fd7aa913acd2585d18dbaed6
parentdt-bindings: display: vop2: Add optional PLL clock properties (diff)
downloadwireguard-linux-9f40d7a94427a503e303b2a2d8db227d615e32c1.tar.xz
wireguard-linux-9f40d7a94427a503e303b2a2d8db227d615e32c1.zip
drm/rockchip: vop2: Drop unnecessary if_pixclk_rate computation
The if_pixclk_rate variable is not being used outside of the if-block in rk3588_calc_cru_cfg(), hence move the superfluous assignment from the first branch to the inner comment-block. Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> Tested-by: FUKAUMI Naoki <naoki@radxa.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://patchwork.freedesktop.org/patch/msgid/20250204-vop2-hdmi0-disp-modes-v3-2-d71c6a196e58@collabora.com
-rw-r--r--drivers/gpu/drm/rockchip/rockchip_drm_vop2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
index 17a98845fd31..2455d4a55abd 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
@@ -1905,8 +1905,8 @@ static unsigned long rk3588_calc_cru_cfg(struct vop2_video_port *vp, int id,
K = 2;
}
- if_pixclk_rate = (dclk_core_rate << 1) / K;
/*
+ * if_pixclk_rate = (dclk_core_rate << 1) / K;
* if_dclk_rate = dclk_core_rate / K;
* *if_pixclk_div = dclk_rate / if_pixclk_rate;
* *if_dclk_div = dclk_rate / if_dclk_rate;