linux/drivers/usb/common
Krzysztof Kozlowski f386bfad03 USB: 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>
Link: https://lore.kernel.org/r/20250114-str-enable-disable-usb-v1-6-c8405df47c19@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-15 18:28:13 +01:00
..
common.c usb: common: expand documentation for USB functions 2024-12-23 18:40:26 +01:00
common.h
debug.c
Kconfig
led.c
Makefile
ulpi.c driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
usb-conn-gpio.c USB: Use str_enable_disable-like helpers 2025-01-15 18:28:13 +01:00
usb-otg-fsm.c usb: common: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:47 +02:00