[PATCH v2 2/3] drm/msm/dp: Remove pixel_rate from struct dp_ctrl
Dmitry Baryshkov
dmitry.baryshkov at linaro.org
Fri Aug 26 09:03:34 UTC 2022
On 23/06/2022 03:25, Stephen Boyd wrote:
> This struct member is stored to in the function that calls the function
> which uses it. That's possible with a function argument instead of
> storing to a struct member. Pass the pixel_rate as an argument instead
> to simplify the code. Note that dp_ctrl_link_maintenance() was storing
> the pixel_rate but never using it so we just remove the assignment from
> there.
>
> Cc: Kuogee Hsieh <quic_khsieh at quicinc.com>
> Signed-off-by: Stephen Boyd <swboyd at chromium.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
> ---
>
> dp_ctrl_on_link() almost doesn't even use the pixel_clk either. It just
> prints the value. I kept it around because maybe it is useful? But if
> not, then we can remove even more code.
Feel free to submit a patch and check if anybody (Kuogee? Abhinav?)
complains.
--
With best wishes
Dmitry
More information about the dri-devel
mailing list