Input: adxl34x - switch to using managed resources
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 10 Jun 2024 16:42:59 +0000 (09:42 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 11 Jun 2024 18:17:44 +0000 (11:17 -0700)
commit985addc13304639876c2ddbcc1c149007c5d67ff
tree05a49016660dfc5ac66fe572a4bf670ac0690548
parent8f275fc73dd6ff78c6041aa4c138410bf2c95ce6
Input: adxl34x - switch to using managed resources

Switch the driver to use managed resources to simplify error handling.

Link: https://lore.kernel.org/r/20240610164301.1048482-3-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/adxl34x-i2c.c
drivers/input/misc/adxl34x-spi.c
drivers/input/misc/adxl34x.c
drivers/input/misc/adxl34x.h