USB: add usb_make_subpath() to replace strlcat() in input drivers
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest posting 2/20 of 6 patches 0 repliesNew
- v2 posting 1/26 patches 12 repliesSuperseded
Changes in v2 from the cover letter
- Add usb_make_subpath() as the first patch in the series.
- Use the helper instead of open-coding strnlen() and strscpy() in
each input driver.
- Link to v1: https://lore.kernel.org/all/[email protected]/
Patches in v2 posting 2/2 No applies recorded yet
None of the 6 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 RESEND 0/6] USB: add usb_make_subpath() to replace strlcat() in input drivers
Several USB input drivers build their physical device paths by calling usb_make_path() and then appending "/input0" or "/input1" with strlcat().
In preparation for removing the deprecated strlcat() API [1], introduce usb_make_subpath() and convert these callers to use it.
Patch 1 adds the helper in include/linux/usb.h. Patches 2-6 convert the joystick, misc, mouse, tablet and touchscreen drivers, respectively.
---
This is a resend of v2 to include the USB maintainers and mailing list that I missed in the original posting.
Original v2:
https://lore.kernel.org/r/[email protected]/
No changes to the patches since v2
Changes in v2:
- Add usb_make_subpath() as the first patch in the series.
- Use the helper instead of open-coding strnlen() and strscpy() in
each input driver.
- Link to v1: https://lore.kernel.org/all/[email protected]/
---
Shihuang Liu (6):
USB: add usb_make_subpath() for formatted device subpaths
Input: joystick - use usb_make_subpath()
Input: misc - use usb_make_subpath()
Input: mouse - use usb_make_subpath()
Input: tablet - use usb_make_subpath()
Input: touchscreen - use usb_make_subpath()
drivers/input/joystick/pxrc.c | 3 +-- drivers/input/joystick/xpad.c | 3 +-- drivers/input/misc/ati_remote2.c | 3 +-- drivers/input/misc/cm109.c | 3 +-- drivers/input/misc/ims-pcu.c | 6 ++--- drivers/input/misc/keyspan_remote.c | 3 +-- drivers/input/misc/powermate.c | 3 +-- drivers/input/misc/yealink.c | 3 +-- drivers/input/mouse/appletouch.c | 3 +-- drivers/input/mouse/bcm5974.c | 3 +-- drivers/input/mouse/synaptics_usb.c | 3 +-- drivers/input/tablet/acecad.c | 3 +-- drivers/input/tablet/aiptek.c | 6 ++--- drivers/input/tablet/hanwang.c | 3 +-- drivers/input/tablet/kbtab.c | 3 +-- drivers/input/tablet/pegasus_notetaker.c | 3 +-- drivers/input/touchscreen/sur40.c | 3 +-- drivers/input/touchscreen/usbtouchscreen.c | 3 +-- include/linux/usb.h | 29 ++++++++++++++++++++++ 19 files changed, 49 insertions(+), 40 deletions(-)
Signature · 1 line
2.43.0