OSDN Git Service

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)
commit0b8f452c9698d48aa92de17294032fac03d47229
treeaee83087cb9ad4ac1567c3d0c31a834a0802a90a
parentc1c00aa53a636d635d9bfad15652fa0694b54f9d
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