Skip to content

Convert joystick drivers to use new cleanup facilities

Dmitry Torokhov linux-input lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Input: db9 - use guard notation when acquiring mutexdrivers/input/joystick/db9.c+14 -162 replies
2/6Input: gamecon - use guard notation when acquiring mutexdrivers/input/joystick/gamecon.c+10 -120 replies
3/6Input: iforce - use guard notation when acquiring mutex and spinlockdrivers/input/joystick/iforce/iforce-ff.c drivers/input/joystick/iforce/iforce-packets.c drivers/input/joystick/iforce/iforce-serio.c +1 more+68 -860 replies
4/6Input: n64joy - use guard notation when acquiring mutexdrivers/input/joystick/n64joy.c+16 -190 replies
5/6Input: turbografx - use guard notation when acquiring mutexdrivers/input/joystick/turbografx.c+10 -120 replies
6/6Input: xpad - use guard notation when acquiring mutex and spinlockdrivers/input/joystick/xpad.c+34 -650 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/6] Convert joystick drivers to use new cleanup facilities

Hi,

This series converts drivers found in drivers/input/keyboard to use new __free() and guard() cleanup facilities that simplify the code and ensure that all resources are released appropriately.

Thanks!

Dmitry Torokhov (6):
Input: db9 - use guard notation when acquiring mutex
Input: gamecon - use guard notation when acquiring mutex
Input: iforce - use guard notation when acquiring mutex and spinlock
Input: n64joy - use guard notation when acquiring mutex
Input: turbografx - use guard notation when acquiring mutex
Input: xpad - use guard notation when acquiring mutex and spinlock

 drivers/input/joystick/db9.c                  | 30 +++---
 drivers/input/joystick/gamecon.c              | 22 ++---
 drivers/input/joystick/iforce/iforce-ff.c     | 48 +++++----
 .../input/joystick/iforce/iforce-packets.c    | 57 +++++------
 drivers/input/joystick/iforce/iforce-serio.c  | 36 +++----
 drivers/input/joystick/iforce/iforce-usb.c    | 13 ++-
 drivers/input/joystick/n64joy.c               | 35 +++----
 drivers/input/joystick/turbografx.c           | 22 ++---
 drivers/input/joystick/xpad.c                 | 99 +++++++------------
 9 files changed, 152 insertions(+), 210 deletions(-)
Signature · 1 line
Dmitry