Commit eaeee373 authored by Rob Herring's avatar Rob Herring Committed by Linus Walleij

pinctrl: 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.

Cc: Sylwester Nawrocki <>
Signed-off-by: Rob Herring's avatarRob Herring <>
Reviewed-by: default avatarTomasz Figa <>
Reviewed-by: default avatarKrzysztof Kozlowski <>
Signed-off-by: Linus Walleij's avatarLinus Walleij <>
parent f836b944
......@@ -1071,7 +1071,7 @@ samsung_pinctrl_get_soc_data(struct samsung_pinctrl_drv_data *d,
bank = d->pin_banks;
for (i = 0; i < d->nr_banks; ++i, ++bank) {
if (!strcmp(bank->name, np->name)) {
if (of_node_name_eq(np, bank->name)) {
bank->of_node = np;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment