mirror-linux/drivers/pinctrl/nomadik
Krzysztof Kozlowski 3f36bffab9 pinctrl: 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>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Antonio Borneo <antonio.borneo@foss.st.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/20250114203602.1013275-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2025-01-15 12:52:26 +01:00
..
Kconfig gpio: nomadik: fix Kconfig dependencies inbetween pinctrl & GPIO 2024-03-01 14:30:28 +01:00
Makefile
pinctrl-ab8500.c pinctrl: nomadik: Add missing header(s) 2023-01-04 02:36:47 +01:00
pinctrl-ab8505.c pinctrl: nomadik: Add missing header(s) 2023-01-04 02:36:47 +01:00
pinctrl-abx500.c pinctrl: Use str_enable_disable-like helpers 2025-01-15 12:52:26 +01:00
pinctrl-abx500.h pinctrl: nomadik: Add missing header(s) 2023-01-04 02:36:47 +01:00
pinctrl-nomadik-db8500.c gpio: nomadik: extract GPIO platform driver from drivers/pinctrl/nomadik/ 2024-02-29 10:22:33 +01:00
pinctrl-nomadik-stn8815.c gpio: nomadik: extract GPIO platform driver from drivers/pinctrl/nomadik/ 2024-02-29 10:22:33 +01:00
pinctrl-nomadik.c pinctrl: Use str_enable_disable-like helpers 2025-01-15 12:52:26 +01:00