Commit c90a851
Input: gpio_keys - use device_for_each_child_node_scoped()
Switch to the _scoped() version introduced in commit 365130f
("device property: Introduce device_for_each_child_node_scoped()")
to remove the need for manual calling of fwnode_handle_put() in the
paths where the code exits the loop early.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20240412-input_device_for_each_child_node_scoped-v1-3-dbad1bc7ea84@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>1 parent 4f210af commit c90a851
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
771 | | - | |
772 | 771 | | |
773 | 772 | | |
774 | 773 | | |
| |||
790 | 789 | | |
791 | 790 | | |
792 | 791 | | |
793 | | - | |
| 792 | + | |
794 | 793 | | |
795 | 794 | | |
796 | 795 | | |
| |||
808 | 807 | | |
809 | 808 | | |
810 | 809 | | |
811 | | - | |
812 | 810 | | |
813 | 811 | | |
814 | 812 | | |
| |||
0 commit comments