macintosh: Use of_node_name_{eq, prefix} for node name comparisons
authorRob Herring <robh@kernel.org>
Wed, 5 Dec 2018 19:50:28 +0000 (13:50 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 22 Dec 2018 10:29:56 +0000 (21:29 +1100)
commitf1e0addca8bd7386f8cabbc64c9988fff91c131f
tree86accf6f05d6b6e05457436f08783e8f460f494a
parentc1fa31b0fc90a80d64a334e5d35dca211f9187f6
macintosh: Use of_node_name_{eq, prefix} for node name comparisons

Convert string compares of DT node names to use of_node_name_{eq,prefix}
helpers instead. This removes direct access to the node name pointer.

This changes a single case insensitive node name comparison to case
sensitive for "ata4". This is the only instance of a case insensitive
comparison for all the open coded node name comparisons on powerpc.
Searching the commit history, there doesn't appear to be any reason for
it to be case insensitive.

A couple of open coded iterating thru the child node names are converted
to use for_each_child_of_node() instead.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/macintosh/ans-lcd.c
drivers/macintosh/macio_asic.c
drivers/macintosh/rack-meter.c
drivers/macintosh/via-pmu.c
drivers/macintosh/windfarm_lm87_sensor.c
drivers/macintosh/windfarm_smu_controls.c
drivers/macintosh/windfarm_smu_sensors.c