mbox series

[0/6] USB: Use str_enable_disable-like helpers

Message ID 20250114-str-enable-disable-usb-v1-0-c8405df47c19@linaro.org (mailing list archive)
Headers show
Series USB: Use str_enable_disable-like helpers | expand

Message

Krzysztof Kozlowski Jan. 14, 2025, 8:05 p.m. UTC
Simple refactoring to replace ternary operator for string pairs like
"enable/disable".

Best regards,
Krzysztof

---
Krzysztof Kozlowski (6):
      USB: Replace own str_plural with common one
      USB: host: Use str_enable_disable-like helpers
      USB: typec: Use str_enable_disable-like helpers
      USB: phy: Use str_enable_disable-like helpers
      USB: gadget: Use str_enable_disable-like helpers
      USB: Use str_enable_disable-like helpers

 drivers/usb/cdns3/cdnsp-gadget.c                   | 13 ++++++------
 drivers/usb/chipidea/host.c                        |  3 ++-
 drivers/usb/common/usb-conn-gpio.c                 |  3 ++-
 drivers/usb/core/config.c                          | 19 +++++++----------
 drivers/usb/core/generic.c                         | 12 ++++-------
 drivers/usb/core/hub.c                             | 10 ++++-----
 drivers/usb/core/port.c                            |  3 ++-
 drivers/usb/fotg210/fotg210-core.c                 |  5 +++--
 drivers/usb/gadget/function/f_ecm.c                |  4 ++--
 drivers/usb/gadget/function/f_ncm.c                |  3 ++-
 drivers/usb/gadget/function/u_serial.c             |  3 ++-
 drivers/usb/gadget/legacy/inode.c                  |  3 ++-
 drivers/usb/gadget/udc/aspeed-vhub/hub.c           |  3 ++-
 drivers/usb/gadget/udc/at91_udc.c                  |  3 ++-
 drivers/usb/gadget/udc/cdns2/cdns2-gadget.c        | 13 ++++++------
 drivers/usb/gadget/udc/dummy_hcd.c                 |  3 ++-
 drivers/usb/gadget/udc/fsl_udc_core.c              |  3 ++-
 drivers/usb/gadget/udc/omap_udc.c                  |  3 ++-
 drivers/usb/gadget/udc/pxa27x_udc.c                |  3 ++-
 drivers/usb/host/oxu210hp-hcd.c                    |  3 ++-
 drivers/usb/host/sl811-hcd.c                       |  3 ++-
 drivers/usb/host/xhci-ring.c                       |  5 +++--
 drivers/usb/host/xhci-tegra.c                      |  5 +++--
 drivers/usb/host/xhci.c                            |  3 ++-
 drivers/usb/mtu3/mtu3_debugfs.c                    |  3 ++-
 drivers/usb/mtu3/mtu3_dr.c                         |  3 ++-
 drivers/usb/mtu3/mtu3_gadget.c                     |  3 ++-
 drivers/usb/musb/da8xx.c                           |  3 ++-
 drivers/usb/musb/musb_core.c                       |  3 ++-
 drivers/usb/musb/musb_dsps.c                       |  3 ++-
 drivers/usb/musb/musb_gadget.c                     |  3 ++-
 drivers/usb/musb/musb_host.c                       |  3 ++-
 drivers/usb/phy/phy-fsl-usb.c                      |  3 ++-
 drivers/usb/phy/phy-mv-usb.c                       |  3 ++-
 drivers/usb/phy/phy-tahvo.c                        |  3 ++-
 drivers/usb/storage/shuttle_usbat.c                |  4 ++--
 drivers/usb/typec/class.c                          |  7 ++++---
 drivers/usb/typec/tcpm/fusb302.c                   | 24 +++++++++++-----------
 .../usb/typec/tcpm/qcom/qcom_pmic_typec_pdphy.c    |  3 ++-
 .../typec/tcpm/qcom/qcom_pmic_typec_pdphy_stub.c   |  3 ++-
 drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_port.c |  4 +++-
 drivers/usb/typec/tcpm/tcpm.c                      |  7 ++++---
 drivers/usb/usbip/vhci_hcd.c                       |  3 ++-
 43 files changed, 124 insertions(+), 95 deletions(-)
---
base-commit: 114d4ae3196721b07f1159730665e0c3f032058a
change-id: 20250114-str-enable-disable-usb-388dcb33018d

Best regards,