]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: ts4800-ts - use cleanup facility for device_node
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Sun, 20 Oct 2024 04:18:57 +0000 (21:18 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 20 Oct 2024 04:21:43 +0000 (21:21 -0700)
commit00850d7b542aa4a8240cf977d43dc6d2158e48d7
tree03e6e3a2d16cc0f1bdb706a814c6bac9d2507d76
parentcd63c67be6094825ff06b2649c6d9b33cb38a1b9
Input: ts4800-ts - use cleanup facility for device_node

Use the '__free(device_node)' macro to automatically free the device
node, removing the need for explicit calls to 'of_node_put()' to
decrement its refcount.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20241010-input_automate_of_node_put-v1-10-ebc62138fbf8@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ts4800-ts.c