]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
pinctrl: Use of_node_name_eq for node name comparisons
authorRob Herring <robh@kernel.org>
Wed, 5 Dec 2018 19:50:36 +0000 (13:50 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 14 Dec 2018 15:03:03 +0000 (16:03 +0100)
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 <s.nawrocki@samsung.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-samsung-soc@vger.kernel.org
Cc: linux-gpio@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Tomasz Figa <tomasz.figa@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/samsung/pinctrl-samsung.c

index ee6ee23386066322b7f9857cad3ad2cde4c73b0a..de0477bb469db9018c9b3026902514f101d113f7 100644 (file)
@@ -1071,7 +1071,7 @@ samsung_pinctrl_get_soc_data(struct samsung_pinctrl_drv_data *d,
                        continue;
                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;
                                break;
                        }