aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2025-01-14 20:36:02 +0000
committerLinus Walleij <[email protected]>2025-01-15 11:52:26 +0000
commit3f36bffab9e324873333304a0fd6c5ec8c9a10fc (patch)
tree4809c3e46ba483cd3eab2a19cf1762a4076b23a3 /net/switchdev/switchdev.c
parentMerge tag 'renesas-pinctrl-for-v6.14-tag3' of git://git.kernel.org/pub/scm/li... (diff)
downloadkernel-3f36bffab9e324873333304a0fd6c5ec8c9a10fc.tar.gz
kernel-3f36bffab9e324873333304a0fd6c5ec8c9a10fc.zip
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 <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Reviewed-by: Antonio Borneo <[email protected]> Reviewed-by: Charles Keepax <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions