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: 152962 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp9696615ljp; Wed, 5 Dec 2018 11:52:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/UqBxFkETu2LIIPtuPFb8LWahueqf3321X4OaUaxESGbaZlVLIvpamCnQU+FGJQYdqg8U+s X-Received: by 2002:a62:d885:: with SMTP id e127mr25526282pfg.197.1544039563237; Wed, 05 Dec 2018 11:52:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544039563; cv=none; d=google.com; s=arc-20160816; b=s5DyhTq9vNrAd/wVRvaI07F187IFfxbacKk1ZUarG8O2XIbtduDnCYWtiXvX/pg4sd gVWk6ADfcPOIga56p9q7OLoKBSQOoKSf8quhNfVz3zNBlpv3VtRHcQxnTHH1Vh9NLba+ pUeoyeXs9L9rnrWlQEWg90EIRynwaDVEmyIHpR+fGCf3MZhP4XxwWHBQF+wrbvUMaDmr 0PPLycT9Vi5nY21sj+AfvEGKi2f8w2di1/+DfOYf/qoqkjQy2LBe25nl8NljHUNsO1RT 0OelsXLXlmSNCl1OvA2O/ZaMccP3s15ZsRWZ4Vk7TUqfVO1AfXN+yjXesDb1JC58nz2f VBCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=MPG48+BHkPOoLEArL9+pShkufe1g9loOUtNtC/iMJ6U=; b=IZ+iFrY3GlxHQmbgrzW9GBtvqNY/p0zOu1Gtm/CUH6CfeUDSWCAlJvfqDbzkYHZcgA 4q1FBIadvhgelT/3pZR941Cmen8QiWAPCV8VgRUvDap6U2z2ktmp1ttfF9SSoC7dfLLt GENSkgXNbgLssdr9Lq2ttjFw3eq4KAikWmtePP12U9joBNKN75Cq7hpwyDWTGbnptkHu Xr6Dbq/f/EJGPoqnRrNnsIdkkX2GM7ymowwOKdE8kEk9308ipTvMfkUDJ+z1xD0lpfD6 jB13BezStfaXtW12FjQMx5bVQS6VXOcNVYCRzxDwTsAPE3nyBYQXZp1GVwl7FUq5GNgb BFpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h96si23092973plb.230.2018.12.05.11.52.42; Wed, 05 Dec 2018 11:52:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728498AbeLETwl (ORCPT + 5 others); 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-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 --- drivers/pinctrl/samsung/pinctrl-samsung.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.19.1 Reviewed-by: Tomasz Figa Reviewed-by: Krzysztof Kozlowski 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; }