[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b2f8e0b4-b8f1-4e90-be2d-715fbd89a1e3@quicinc.com>
Date: Wed, 15 Jan 2025 13:15:26 -0800
From: Abhinav Kumar <quic_abhinavk@...cinc.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
Rob Clark
<robdclark@...il.com>,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>,
Sean
Paul <sean@...rly.run>,
Marijn Suijten <marijn.suijten@...ainline.org>,
David
Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>,
<linux-arm-msm@...r.kernel.org>, <dri-devel@...ts.freedesktop.org>,
<freedreno@...ts.freedesktop.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] drm/msm: Use str_enable_disable-like helpers
On 1/14/2025 11:17 AM, Krzysztof Kozlowski wrote:
> Replace ternary (condition ? "enable" : "disable") syntax with helpers
> from string_choices.h because:
> 1. Simple function call with one argument is easier to read. Ternary
> operator has three arguments and with wrapping might lead to quite
> long code.
> 2. Is slightly shorter thus also easier to read.
> 3. It brings uniformity in the text - same string.
> 4. Allows deduping by the linker, which results in a smaller binary
> file.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
> ---
> .../drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 5 ++--
> drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c | 3 ++-
> drivers/gpu/drm/msm/dp/dp_ctrl.c | 25 ++++++++++---------
> drivers/gpu/drm/msm/dp/dp_display.c | 4 +--
> drivers/gpu/drm/msm/dp/dp_drm.c | 5 ++--
> 5 files changed, 23 insertions(+), 19 deletions(-)
>
Interesting helper str_true_false :)
LGTM,
Reviewed-by: Abhinav Kumar <quic_abhinavk@...cinc.com>
Powered by blists - more mailing lists