OSDN Git Service

backlight: 88pm860x_bl: Use of_node_name_eq for node name comparisons
authorRob Herring <robh@kernel.org>
Wed, 5 Dec 2018 19:50:44 +0000 (13:50 -0600)
committerLee Jones <lee.jones@linaro.org>
Fri, 14 Dec 2018 12:30:24 +0000 (12:30 +0000)
commit3cee7a7d05b11038c8b5fa093e45c6f839ffc867
treef18ac338e4f267b826f22ac9e2c7e70f1709692d
parent61170ee9386888f1e6f7e9cc58e8d9a8c2a3c1dd
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>
drivers/video/backlight/88pm860x_bl.c