summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-12-05 13:50:27 -0600
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2018-12-06 21:30:08 +0100
commit555fc5ba57908d7c0e4593bc58b2766f5ed5adf5 (patch)
tree690519f723caede1823fef27cd64acc3b4ce3d2e /drivers/leds
parente41ca3b1eab89f3d50d0910adb7d6f49ac82d604 (diff)
downloadlinux-stable-555fc5ba57908d7c0e4593bc58b2766f5ed5adf5.tar.gz
linux-stable-555fc5ba57908d7c0e4593bc58b2766f5ed5adf5.tar.bz2
linux-stable-555fc5ba57908d7c0e4593bc58b2766f5ed5adf5.zip
leds: 88pm860x: Use of_node_name_eq for node name comparisons
Convert string compares of DT node names to use of_node_name_eq helper instead. This removes direct access to the node name pointer. For instances using of_node_cmp, this has the side effect of now using case sensitive comparisons. This should not matter for any FDT based system which this is. Cc: linux-leds@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-88pm860x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-88pm860x.c b/drivers/leds/leds-88pm860x.c
index 77a104d2b124..036d4a536697 100644
--- a/drivers/leds/leds-88pm860x.c
+++ b/drivers/leds/leds-88pm860x.c
@@ -130,7 +130,7 @@ static int pm860x_led_dt_init(struct platform_device *pdev,
return -ENODEV;
}
for_each_child_of_node(nproot, np) {
- if (!of_node_cmp(np->name, data->name)) {
+ if (of_node_name_eq(np, data->name)) {
of_property_read_u32(np, "marvell,88pm860x-iset",
&iset);
data->iset = PM8606_LED_CURRENT(iset);