diff options
author | Rob Herring <robh@kernel.org> | 2018-12-05 20:50:44 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2018-12-14 13:30:24 +0100 |
commit | 3cee7a7d05b11038c8b5fa093e45c6f839ffc867 (patch) | |
tree | f18ac338e4f267b826f22ac9e2c7e70f1709692d /drivers/video/backlight | |
parent | backlight: pwm_bl: Fix devicetree parsing with auto-generated brightness tables (diff) | |
download | linux-3cee7a7d05b11038c8b5fa093e45c6f839ffc867.tar.xz linux-3cee7a7d05b11038c8b5fa093e45c6f839ffc867.zip |
backlight: 88pm860x_bl: 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.
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r-- | drivers/video/backlight/88pm860x_bl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/88pm860x_bl.c b/drivers/video/backlight/88pm860x_bl.c index 6d8dc2c77520..51e0c4be08df 100644 --- a/drivers/video/backlight/88pm860x_bl.c +++ b/drivers/video/backlight/88pm860x_bl.c @@ -174,7 +174,7 @@ static int pm860x_backlight_dt_init(struct platform_device *pdev, return -ENODEV; } for_each_child_of_node(nproot, np) { - if (!of_node_cmp(np->name, name)) { + if (of_node_name_eq(np, name)) { of_property_read_u32(np, "marvell,88pm860x-iset", &iset); data->iset = PM8606_WLED_CURRENT(iset); |