Skip to content

usb: constify struct device_type usage

Ricardo B. Marliere linux-usb lkml 1 version In review

Get series with b4
b4 am [email protected] change-id 20240218-device_cleanup-usb-98fac2ef0160

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4usb: typec: constify the struct device_type usagedrivers/usb/typec/pd.c+15 -151 reply
2/4usb: phy: constify the struct device_type usagedrivers/usb/phy/phy.c+1 -10 replies
3/4usb: gadget: constify the struct device_type usagedrivers/usb/gadget/function/u_ether.c+1 -10 replies
4/4usb: core: constify the struct device_type usagedrivers/usb/core/endpoint.c drivers/usb/core/message.c drivers/usb/core/port.c +2 more+8 -80 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchHeikki Krogerus
1/4A-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] usb: constify struct device_type usage

This is a simple and straight forward cleanup series that makes all device types in the net subsystem constants. This has been possible since 2011 [1] but not all occurrences were cleaned.

---
[1] https://lore.kernel.org/all/[email protected]/

---
Ricardo B. Marliere (4):
usb: typec: constify the struct device_type usage
usb: phy: constify the struct device_type usage
usb: gadget: constify the struct device_type usage
usb: core: constify the struct device_type usage

 drivers/usb/core/endpoint.c           |  2 +-
 drivers/usb/core/message.c            |  2 +-
 drivers/usb/core/port.c               |  2 +-
 drivers/usb/core/usb.c                |  2 +-
 drivers/usb/core/usb.h                |  8 ++++----
 drivers/usb/gadget/function/u_ether.c |  2 +-
 drivers/usb/phy/phy.c                 |  2 +-
 drivers/usb/typec/pd.c                | 30 +++++++++++++++---------------
 8 files changed, 25 insertions(+), 25 deletions(-)

---
base-commit: cf92b9df3dcf45eab0fe3fcf9e97ce55c31c48c0
change-id: 20240218-device_cleanup-usb-98fac2ef0160

Best regards,

Signature · 1 line
Ricardo B. Marliere <[email protected]>