]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: sun4i-lradc-keys - switch to for_each_child_of_node_scoped
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Sun, 20 Oct 2024 04:01:07 +0000 (21:01 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 20 Oct 2024 04:21:38 +0000 (21:21 -0700)
commit0ec6f58b63ae17774b10aa41ee86b6a387b60038
tree4721bb64b96ea3e280f80179e0155b4e3c0013fc
parent2e6980c16993d21ff6dc9c338a33920f10d22395
Input: sun4i-lradc-keys - switch to for_each_child_of_node_scoped

Use the scoped variant of the macro to simplify the code and error
handling. This makes the error handling more robust by ensuring that
the child node is always freed.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Link: https://lore.kernel.org/r/20241010-input_automate_of_node_put-v1-3-ebc62138fbf8@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/sun4i-lradc-keys.c