]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: Use str_enable_disable-like helpers
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 14 Jan 2025 21:40:22 +0000 (13:40 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 14 Jan 2025 21:41:41 +0000 (13:41 -0800)
commit7ef9bdec9a22ad48a76e0c446d54b2274eaf2fca
tree57619be804c4b21484ebeac9459d470ed4675a6b
parent21d8dd0daf4cf4627a0c4b813e0f91bcda67598a
Input: 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/20250114192701.912430-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/dlink-dir685-touchkeys.c
drivers/input/keyboard/lm8323.c
drivers/input/misc/max77693-haptic.c
drivers/input/misc/regulator-haptic.c
drivers/input/mouse/elan_i2c_core.c
drivers/input/touchscreen/egalax_ts.c