mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/6] USB: Use str_enable_disable-like helpers
@ 2025-01-14 20:05 Krzysztof Kozlowski
  2025-01-14 20:05 ` [PATCH 1/6] USB: Replace own str_plural with common one Krzysztof Kozlowski
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2025-01-14 20:05 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Mathias Nyman, Thierry Reding,
	Jonathan Hunter, Heikki Krogerus, Andrew Jeffery, Nicolas Ferre,
	Alexandre Belloni, Claudiu Beznea, Daniel Mack, Haojian Zhuang,
	Robert Jarzmik, Peter Chen, Linus Walleij, Alan Stern
  Cc: linux-usb, linux-kernel, usb-storage, Krzysztof Kozlowski

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,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-02-03  3:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-14 20:05 [PATCH 0/6] USB: Use str_enable_disable-like helpers Krzysztof Kozlowski
2025-01-14 20:05 ` [PATCH 1/6] USB: Replace own str_plural with common one Krzysztof Kozlowski
2025-01-14 20:05 ` [PATCH 2/6] USB: host: Use str_enable_disable-like helpers Krzysztof Kozlowski
2025-01-14 20:05 ` [PATCH 3/6] USB: typec: " Krzysztof Kozlowski
2025-01-16 12:19   ` Heikki Krogerus
2025-01-14 20:05 ` [PATCH 4/6] USB: phy: " Krzysztof Kozlowski
2025-01-14 20:05 ` [PATCH 5/6] USB: gadget: " Krzysztof Kozlowski
2025-02-03  3:44   ` Andrew Jeffery
2025-01-14 20:05 ` [PATCH 6/6] USB: " Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®