mirror-linux/drivers/usb/phy
Krzysztof Kozlowski 2d913c1b0c USB: phy: 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-4-c8405df47c19@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-15 18:28:13 +01:00
..
Kconfig usb: phy: remove phy-isp1301-omap driver 2023-01-12 10:53:11 +01:00
Makefile usb: phy: remove phy-isp1301-omap driver 2023-01-12 10:53:11 +01:00
of.c
phy-ab8500-usb.c usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
phy-am335x-control.c usb: phy: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:32 +02:00
phy-am335x-control.h
phy-am335x.c usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
phy-fsl-usb.c USB: phy: Use str_enable_disable-like helpers 2025-01-15 18:28:13 +01:00
phy-fsl-usb.h
phy-generic.c usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
phy-generic.h
phy-gpio-vbus-usb.c usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
phy-isp1301.c usb: phy: isp1301:: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-10-04 15:12:40 +02:00
phy-keystone.c usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
phy-mv-usb.c USB: phy: Use str_enable_disable-like helpers 2025-01-15 18:28:13 +01:00
phy-mv-usb.h
phy-mxs-usb.c usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
phy-omap-otg.c
phy-tahvo.c USB: phy: Use str_enable_disable-like helpers 2025-01-15 18:28:13 +01:00
phy-tegra-usb.c usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
phy-twl6030-usb.c usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
phy-ulpi-viewport.c
phy-ulpi.c
phy.c usb: phy: Remove API devm_usb_put_phy() 2025-01-13 06:12:09 +01:00