[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <174128478440.2031308.15667094912348711160.b4-ty@nvidia.com>
Date: Thu, 6 Mar 2025 19:13:13 +0100
From: Thierry Reding <thierry.reding@...il.com>
To: Thierry Reding <thierry.reding@...il.com>,
Jonathan Hunter <jonathanh@...dia.com>,
linux-tegra@...r.kernel.org,
linux-kernel@...r.kernel.org,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Subject: Re: [PATCH] soc: tegra: Use str_enable_disable-like helpers
From: Thierry Reding <treding@...dia.com>
On Tue, 14 Jan 2025 21:36:38 +0100, 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.
>
> [...]
Applied, thanks!
[1/1] soc: tegra: Use str_enable_disable-like helpers
commit: 5e63dfe213d01cdf0bb2786ae3d5ac613182a433
Best regards,
--
Thierry Reding <treding@...dia.com>
Powered by blists - more mailing lists