]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
greybus: svc: use string choice helpers instead of ternary operator
authorNai-Chen Cheng <bleach1827@gmail.com>
Wed, 6 Aug 2025 06:27:11 +0000 (14:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Aug 2025 10:50:31 +0000 (12:50 +0200)
commit0e805e8b007d42502dbb7b883cae4794890a40ff
tree84c489f3c7195c04c1785bbf91eca7da27af7f85
parent51ad6d97151c88976a93cdc023d6cd27dce48c38
greybus: svc: use string choice helpers instead of ternary operator

Replace ternary operator with str_enabled_disabled() helper to improve
code readability and consistency.

Generated using Coccinelle semantic patch.

Signed-off-by: Nai-Chen Cheng <bleach1827@gmail.com>
Reviewed-by: Alex Elder <elder@riscstar.com>
Link: https://lore.kernel.org/r/20250806-greybus-string-choices-v1-1-3e1c91048b62@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/greybus/svc.c