]> git.baikalelectronics.ru Git - kernel.git/commit
Input: i8042 - rework DT node name comparisons
authorRob Herring <robh@kernel.org>
Mon, 18 Feb 2019 07:14:25 +0000 (23:14 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 18 Feb 2019 20:11:04 +0000 (12:11 -0800)
commit6a597d44946943225c77a449a1ddda49c785b5ed
treeaee83087cb9ad4ac1567c3d0c31a834a0802a90a
parentf7c8b5f64b342e6b4f7eba3438c52245edcd18ec
Input: i8042 - rework DT node name comparisons

Convert string compares of DT node names to use of_node_name_eq helper
instead. For the root node on SUN DT, we need to retrieve the 'name'
property as it is the rare case where the 'name' property and node name
differ. With both changes, it removes direct access to the node name
pointer.

While at it, convert the open coded loop to use for_each_child_of_node().

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/i8042-sparcio.h