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 X-Patchwork-Id: 1008415 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4398XW49MTz9s0t for ; Thu, 6 Dec 2018 06:52:43 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728498AbeLETwl (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-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org 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; }