mirror-linux/drivers/net/dsa/realtek
Krzysztof Kozlowski 544c939406 dsa: 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: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2025-01-20 09:23:25 +00:00
..
Kconfig net: dsa: realtek: merge rtl83xx and interface modules into realtek_dsa 2024-02-12 10:42:17 +00:00
Makefile net: dsa: realtek: merge rtl83xx and interface modules into realtek_dsa 2024-02-12 10:42:17 +00:00
realtek-mdio.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
realtek-mdio.h net: dsa: realtek: convert variants into real drivers 2024-02-12 10:42:16 +00:00
realtek-smi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
realtek-smi.h net: dsa: realtek: convert variants into real drivers 2024-02-12 10:42:16 +00:00
realtek.h net: dsa: realtek: provide own phylink MAC operations 2024-04-30 13:50:01 +02:00
rtl83xx.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
rtl83xx.h net: dsa: realtek: support reset controller 2024-02-28 08:21:41 +00:00
rtl8365mb.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
rtl8366-core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
rtl8366rb.c dsa: Use str_enable_disable-like helpers 2025-01-20 09:23:25 +00:00