mirror-linux/drivers/pinctrl/bcm
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 arm64: bcmbca: Make BCM4908 drivers depend on ARCH_BCMBCA 2022-08-15 09:55:34 -07:00
Makefile pinctrl: bcm: add driver for BCM4908 pinmux 2022-01-25 01:42:13 +01:00
pinctrl-bcm63xx.c pinctrl: bcm: bcm63xx: Use scope based of_node_put() cleanups 2024-06-26 11:59:00 +02:00
pinctrl-bcm63xx.h pinctrl: bcm: Convert drivers to use struct pingroup and PINCTRL_PINGROUP() 2022-08-25 13:57:00 +02:00
pinctrl-bcm281xx.c pinctrl: bcm: Add missing header(s) 2022-10-24 12:53:33 +03:00
pinctrl-bcm2835.c pinctrl: bcm2835: fix module autoloading 2024-08-24 16:46:33 +02:00
pinctrl-bcm4908.c pinctrl: add missing MODULE_DESCRIPTION() macros 2024-06-17 10:59:31 +02:00
pinctrl-bcm6318.c pinctrl: bcm: Convert drivers to use struct pingroup and PINCTRL_PINGROUP() 2022-08-25 13:57:00 +02:00
pinctrl-bcm6328.c pinctrl: bcm: Remove unused struct bcm6328_pingroup 2022-10-04 09:39:22 +02:00
pinctrl-bcm6358.c pinctrl: bcm: Convert drivers to use struct pingroup and PINCTRL_PINGROUP() 2022-08-25 13:57:00 +02:00
pinctrl-bcm6362.c pinctrl: bcm: Convert drivers to use struct pingroup and PINCTRL_PINGROUP() 2022-08-25 13:57:00 +02:00
pinctrl-bcm6368.c pinctrl: bcm: Convert drivers to use struct pingroup and PINCTRL_PINGROUP() 2022-08-25 13:57:00 +02:00
pinctrl-bcm63268.c pinctrl: bcm: Convert drivers to use struct pingroup and PINCTRL_PINGROUP() 2022-08-25 13:57:00 +02:00
pinctrl-cygnus-mux.c pinctrl: bcm: Add missing header(s) 2022-10-24 12:53:33 +03:00
pinctrl-iproc-gpio.c Fix a potential abuse of seq_printf() format string in drivers 2024-11-22 15:31:35 +01:00
pinctrl-ns.c pinctrl: bcm: Convert to use grp member 2023-12-12 00:47:52 +01:00
pinctrl-ns2-mux.c pinctrl: bcm: Add missing header(s) 2022-10-24 12:53:33 +03:00
pinctrl-nsp-gpio.c pinctrl: Use str_enable_disable-like helpers 2025-01-15 12:52:26 +01:00
pinctrl-nsp-mux.c pinctrl: bcm: Add missing header(s) 2022-10-24 12:53:33 +03:00