Skip to content

usb: gadget: dummy_hcd: coding style improvements

Clint George linux-kernel-mentees linux-usb lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 7 repliesIn review
  2. v18 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6usb: gadget: dummy_hcd: replace symbolic permissions (S_IRUGO) with octal (0444)drivers/usb/gadget/udc/dummy_hcd.c+3 -30 replies
2/6usb: gadget: dummy_hcd: use 'unsigned int' instead of bare 'unsigned'drivers/usb/gadget/udc/dummy_hcd.c+5 -51 reply
3/6usb: gadget: dummy_hcd: document ISO endpoint allocation patterndrivers/usb/gadget/udc/dummy_hcd.c+5 -170 replies
4/6usb: gadget: dummy_hcd: use sizeof(*ptr) instead of sizeof *ptrdrivers/usb/gadget/udc/dummy_hcd.c+3 -30 replies
5/6usb: gadget: dummy_hcd: remove unnecessary parenthesesdrivers/usb/gadget/udc/dummy_hcd.c+1 -10 replies
6/6usb: gadget: dummy_hcd: move function bracesdrivers/usb/gadget/udc/dummy_hcd.c+4 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/6] usb: gadget: dummy_hcd: coding style improvements

This patch series focuses on addressing various coding style issues in the dummy_hcd USB gadget driver. The changes includes adding relevant comments, improving readability, and ensuring consistency with kernel coding conventions.

Clint George (6):
usb: gadget: dummy_hcd: replace symbolic permissions (S_IRUGO) with octal (0444)
usb: gadget: dummy_hcd: use 'unsigned int' instead of bare 'unsigned'
usb: gadget: dummy_hcd: document ISO endpoint allocation pattern
usb: gadget: dummy_hcd: use sizeof(*ptr) instead of sizeof *ptr
usb: gadget: dummy_hcd: remove unnecessary parentheses
usb: gadget: dummy_hcd: move function braces

 drivers/usb/gadget/udc/dummy_hcd.c | 52 ++++++++++++------------------
 1 file changed, 21 insertions(+), 31 deletions(-)

---

Testing:
- Ran compiler testing with no new warnings detected.
- Ensured the module builds and inserts cleanly without issues.
- Used Static Analysis tools to confirm no new issues were introduced.

Please review the changes and let me know if any modifications or further testing of the module is required.

As part of my LKMP mentorship i have to complete 5 patches as a criteria for graduation and thus have focused on working on such beginner-friendly patches so that not only do i get the required number of patches but also get familiar with the process of kernel developement. Thus, while this patch series doesn't address the max_stream value exceeding problem that triggers the BUG() API, i will take some time to dig deeper and truly understand the problem and fix it and not just paper-over the problem.

Again, i am very grateful for your feedback greg and alan to guide a beginner like me.

Thanks,
Clint

Signature · 1 line
2.43.0