]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Bluetooth: Use str_enable_disable-like helpers
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 14 Jan 2025 10:56:41 +0000 (11:56 +0100)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 15 Jan 2025 15:36:11 +0000 (10:36 -0500)
commitacdbea5e71fe955c3cdf70af7e0e43795d230947
tree275ad3a5b2992bea604decc1be5847d4183a5425
parenta7208610761ae9b3bc109ddc493eb7c332fca5b2
Bluetooth: 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>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btintel.c
drivers/bluetooth/btmrvl_main.c
drivers/bluetooth/hci_qca.c