]> www.infradead.org Git - users/dwmw2/linux.git/commit
mfd: ipaq-micro/tps65010: Use str_enable_disable-like helpers
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 14 Jan 2025 19:25:38 +0000 (20:25 +0100)
committerLee Jones <lee@kernel.org>
Fri, 14 Mar 2025 08:59:05 +0000 (08:59 +0000)
commit9675c059e489ced89aa894214afdaa2605bc9559
tree79a7a2b9d8117e6e73a4f4d0ef41447188192b43
parent7dc0dddbe503fce55ffe31ae5e8a861256a31e3f
mfd: ipaq-micro/tps65010: Use str_enable_disable-like helpers

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@linaro.org>
Link: https://lore.kernel.org/r/20250114192538.911970-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/ipaq-micro.c
drivers/mfd/tps65010.c