mbox series

[0/8] Convert input core to use new cleanup facilities

Message ID 20241107071538.195340-1-dmitry.torokhov@gmail.com
Headers show
Series Convert input core to use new cleanup facilities | expand

Message

Dmitry Torokhov Nov. 7, 2024, 7:15 a.m. UTC
Hi,

This series converts input core (but not input handlers such as evdev,
joydev, etc) to use new __free() and guard() cleanup facilities that
simplify the code and ensure that all resources are released
appropriately.

Input handlers will be converted separately later.

Thanks!

Dmitry Torokhov (8):
  Input: ff-core - convert locking to guard notation
  Input: ff-core - make use of __free() cleanup facility
  Input: ff-memless - convert locking to guard notation
  Input: ff-memless - make use of __free() cleanup facility
  Input: mt - convert locking to guard notation
  Input: mt - make use of __free() cleanup facility
  Input: poller - convert locking to guard notation
  Input: use guard notation in input core

 drivers/input/ff-core.c      |  90 ++++------
 drivers/input/ff-memless.c   |  17 +-
 drivers/input/input-mt.c     |  34 ++--
 drivers/input/input-poller.c |   4 +-
 drivers/input/input.c        | 339 ++++++++++++++---------------------
 5 files changed, 184 insertions(+), 300 deletions(-)