]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Input: atlas_btns - modernize the driver
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 30 May 2026 05:52:39 +0000 (22:52 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 6 Jun 2026 21:05:30 +0000 (14:05 -0700)
commit44098c590bc74b98c2ba175d653ea496d342440f
tree56c5d8b44967e463b852e7e9a848c25083c8771d
parent391a47efbb31c48c839d3efde7756e0a00bf11f4
Input: atlas_btns - modernize the driver

Rework the driver to use modern style:

- Remove global state by introducing a per-device structure
- Use devm for resource management (input device allocation)
- Use dev_err_probe() for error reporting in the probe path
- Clean up unused definitions and headers.

Assisted-by: Gemini:gemini-3.1-pro
Link: https://patch.msgid.link/ahp6qt_viW3l-NlX@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/atlas_btns.c