lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250114-str-enable-disable-usb-v1-0-c8405df47c19@linaro.org>
Date: Tue, 14 Jan 2025 21:05:33 +0100
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>, 
 Mathias Nyman <mathias.nyman@...el.com>, 
 Thierry Reding <thierry.reding@...il.com>, 
 Jonathan Hunter <jonathanh@...dia.com>, 
 Heikki Krogerus <heikki.krogerus@...ux.intel.com>, 
 Andrew Jeffery <andrew@...econstruct.com.au>, 
 Nicolas Ferre <nicolas.ferre@...rochip.com>, 
 Alexandre Belloni <alexandre.belloni@...tlin.com>, 
 Claudiu Beznea <claudiu.beznea@...on.dev>, Daniel Mack <daniel@...que.org>, 
 Haojian Zhuang <haojian.zhuang@...il.com>, 
 Robert Jarzmik <robert.jarzmik@...e.fr>, Peter Chen <peter.chen@...nel.org>, 
 Linus Walleij <linus.walleij@...aro.org>, 
 Alan Stern <stern@...land.harvard.edu>
Cc: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org, 
 usb-storage@...ts.one-eyed-alien.net, 
 Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Subject: [PATCH 0/6] USB: Use str_enable_disable-like helpers

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@...aro.org>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ