From patchwork Wed Dec 5 19:50:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 10714825 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 334BB157A for ; Wed, 5 Dec 2018 19:52:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25EB12E380 for ; Wed, 5 Dec 2018 19:52:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 193832E3AE; Wed, 5 Dec 2018 19:52:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5ED72E3B4 for ; Wed, 5 Dec 2018 19:52:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728501AbeLETwl (ORCPT ); Wed, 5 Dec 2018 14:52:41 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:44279 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728772AbeLETvO (ORCPT ); Wed, 5 Dec 2018 14:51:14 -0500 Received: by mail-ot1-f68.google.com with SMTP id f18so19781739otl.11; Wed, 05 Dec 2018 11:51:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MPG48+BHkPOoLEArL9+pShkufe1g9loOUtNtC/iMJ6U=; b=gk7nWRzUeulVBwQFdK1kmZT2CrNPYqdiF4RLUNEQMDgcFJzGXeTKnLm+BSo/fS+BPu LMsqzyM9m+7TXGoz/p44x1g8DIDBn4mtd+6lu1FSblxxOloQE+5X0jd4j7W4C9/peTge an8w/3t5MK/FIOqDwsIIrGJi5l0Hb1Ok74uEgKzO6WF8bDrbp8EEcuJJhj2cKx0foTJY s5fH2F3yiNMuq18cTlmWzxI0HfNJSGjD198BWJN1PaX5xABLghlz/ORrcU4cm7kfNM4w ZPLm7HzuMVneszp0DR2L7T7L0NFPSCew7Kkm5vYaQkJIeXkqU0FNaKN3iREPnBoJgH6h QvPw== X-Gm-Message-State: AA+aEWa8EAKjeMJhQYd6bVs3NK16GNCcKozN9cWmKImVWBkGbzNfyr5x dy6Y51BzZxyawg5QlbdqjIqQdqU= X-Google-Smtp-Source: AFSGD/Xc8OIRmd4dkQH/FjRfjmRB+sE8C8oX13ZL74lqrkOR+KCm30hgliWm3EImKFf58i+LPeSkUA== X-Received: by 2002:a9d:18f:: with SMTP id e15mr17158595ote.84.1544039473605; Wed, 05 Dec 2018 11:51:13 -0800 (PST) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id k13sm25759879otj.19.2018.12.05.11.51.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 11:51:13 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Tomasz Figa , Krzysztof Kozlowski , Sylwester Nawrocki , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-gpio@vger.kernel.org Subject: [PATCH] pinctrl: Use of_node_name_eq for node name comparisons Date: Wed, 5 Dec 2018 13:50:36 -0600 Message-Id: <20181205195050.4759-20-robh@kernel.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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: Tomasz Figa Cc: Krzysztof Kozlowski Cc: Sylwester Nawrocki Cc: Linus Walleij 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 Reviewed-by: Tomasz Figa Reviewed-by: Krzysztof Kozlowski --- drivers/pinctrl/samsung/pinctrl-samsung.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.c b/drivers/pinctrl/samsung/pinctrl-samsung.c index ee6ee2338606..de0477bb469d 100644 --- a/drivers/pinctrl/samsung/pinctrl-samsung.c +++ b/drivers/pinctrl/samsung/pinctrl-samsung.c @@ -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; }