mirror-linux/drivers/usb/fotg210
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
..
Kconfig usb: fotg210: fix a Kconfig spelling mistake 2023-01-25 15:43:24 +01:00
Makefile usb: fotg210: Use *-y instead of *-objs in Makefile 2024-05-10 10:36:35 +01:00
fotg210-core.c USB: Use str_enable_disable-like helpers 2025-01-15 18:28:13 +01:00
fotg210-hcd.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
fotg210-hcd.h usb: fotg210: Acquire memory resource in core 2023-01-19 14:10:43 +01:00
fotg210-udc.c usb: fotg210-udc: fix function kernel-doc comments 2023-12-11 09:08:42 +01:00
fotg210-udc.h fotg210-udc: Improve device initialization 2023-01-24 18:12:18 +01:00
fotg210.h usb: fotg210-udc: Implement VBUS session 2023-01-19 14:10:44 +01:00