linux/drivers/usb/gadget/udc/cdns2
Krzysztof Kozlowski 5b6dc50e9e USB: gadget: 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-5-c8405df47c19@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-15 18:28:13 +01:00
..
cdns2-debug.h usb: cdns2: Replace snprintf() with the safer scnprintf() variant 2023-12-15 13:55:30 +01:00
cdns2-ep0.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
cdns2-gadget.c USB: gadget: Use str_enable_disable-like helpers 2025-01-15 18:28:13 +01:00
cdns2-gadget.h usb: cdns2: Fix controller reset issue 2024-09-03 10:03:54 +02:00
cdns2-pci.c usb: cdns3: Synchronise PCI IDs via common data base 2024-11-13 07:16:31 +01:00
cdns2-trace.c usb: cdns2: Add tracepoints for CDNS2 driver 2023-06-13 11:59:29 +02:00
cdns2-trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
Kconfig
Makefile usb: cdns2: Add tracepoints for CDNS2 driver 2023-06-13 11:59:29 +02:00