[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <05c9960be5d357e9b48e431d110797f2.sboyd@kernel.org>
Date: Tue, 14 Jan 2025 12:26:32 -0800
From: Stephen Boyd <sboyd@...nel.org>
To: Bjorn Andersson <andersson@...nel.org>, Broadcom internal kernel review list <bcm-kernel-feedback-list@...adcom.com>, Florian Fainelli <florian.fainelli@...adcom.com>, Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>, Linus Walleij <linus.walleij@...aro.org>, Michael Turquette <mturquette@...libre.com>, Ray Jui <rjui@...adcom.com>, Scott Branden <sbranden@...adcom.com>, linux-arm-kernel@...ts.infradead.org, linux-arm-msm@...r.kernel.org, linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Subject: Re: [PATCH v2] clk: Use str_enable_disable-like helpers
Quoting Krzysztof Kozlowski (2025-01-14 11:06:12)
> 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.
>
> Reviewed-by: Florian Fainelli <florian.fainelli@...adcom.com>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
>
> ---
Applied to clk-next
Powered by blists - more mailing lists