diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2025-01-14 23:36:02 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2025-01-15 14:52:26 +0300 |
commit | 3f36bffab9e324873333304a0fd6c5ec8c9a10fc (patch) | |
tree | 4809c3e46ba483cd3eab2a19cf1762a4076b23a3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 33f32a06a5d7c1881311d55049c92ed80b6df828 (diff) | |
download | linux-3f36bffab9e324873333304a0fd6c5ec8c9a10fc.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions