From patchwork Tue Feb 5 23:24:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 157539 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp5755134jaa; Tue, 5 Feb 2019 15:25:11 -0800 (PST) X-Google-Smtp-Source: AHgI3IY8Kol5GBlUWSsHO5GHqKTMFaZPnAVOVELHwxl15Ip3wFsDC3YbEG7U458g1DeddUkXg8O2 X-Received: by 2002:a63:26c1:: with SMTP id m184mr6384969pgm.367.1549409111715; Tue, 05 Feb 2019 15:25:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549409111; cv=none; d=google.com; s=arc-20160816; b=iaUNTclgcHnOs0FDPUBu6rv6Xi3gMxN+JgaCOSOQ/DEXFQfIk6X7WR4w67HgKQTCBz 2lOaDIdMNjc9xikubxiw5r9+96DuhfZg8bviw7gEZSHRd1AcBkUDCW460saTUlkKhzbQ KepkyM1ibx2cRN1D/isJ2jyBFHO5DHwPP10Qkn02VkhiUDTowWNw6SNduMHg4i8rac2n Gywnt+NYEKXmXw0D5t2WXUTiI9AqxiHey3/08kcRNIr/pmic57ojJp0NF72DjM76jczF V2Lg7rBu1LdlmEQ1jtt8cqFZbunpFcYfYT1/nUROnWjWhlOjpXBB5nad0ZVz7qvbheAN zItg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=WNp4gohR0kMr5GUi8PqSACf2MyhhTlb9SKT3Z79/9T4=; b=RwMufulwiBMWhEq/GfzUoWXAq5E13a+rIF5ZUp038SJXxK3iCC6ULElXi6tLAuIDy+ om5w1DaE+/2sPW4RRR9re/pYHSDw5c7MyMHNHD7tqicMl9Kk1atAtVC91WG/bdyIu7tf Hr1dyQoDpBFyUg5I6viUSFSVr2EEhQqktcBgPxgsa6Rt1U0Pj0nYYFRQ+XhHyRUwEzgt vqdotfaIbckKYift8N53sZmrtT1sGte3b84WXDLyP8N8qHC2JnvFLVHFm4+LXOBqsYCp kDBMdRjli0AoW/StrNMNhwXv379nn8yGR276C/ZsHLBKU39OZKUe8eDlMMO21ynBTdTP lKsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CTFmUd1N; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j123si4160630pgc.16.2019.02.05.15.25.11; Tue, 05 Feb 2019 15:25:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CTFmUd1N; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728889AbfBEXZH (ORCPT + 31 others); Tue, 5 Feb 2019 18:25:07 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:34389 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728712AbfBEXZE (ORCPT ); Tue, 5 Feb 2019 18:25:04 -0500 Received: by mail-pf1-f194.google.com with SMTP id h3so2234055pfg.1 for ; Tue, 05 Feb 2019 15:25:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WNp4gohR0kMr5GUi8PqSACf2MyhhTlb9SKT3Z79/9T4=; b=CTFmUd1NWnzQEmzeNv77ejYV6bDV+03HNubH5pp8Bf7ecdZAgok7sKxHz2RnIkroO2 2zA6DcOTpsLNnZaIHkTy+LiaxO8Gl2n4bc8/s27NGj7Ac9rF+xQ14bfBukZZvczWQ82B lhUn+IHLnUD+u8DD3GjQNYCyQX+2VTarLjIAP7/vDCqo6N4blKsoIdqsU4qLG9iQdWr8 d6yw5RwC92mX4gXb4q0zMTueXbTucESrUzFnPLW9SE1EVmWJoezdwdefP/Ff6HJK3C5p de+95AJGnt5eus9nQ+sAKvTFUkNnuYsXaqjVzu5BlzixyRX2vd1ww/8QRSmniA/pOBKK zP8g== 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:in-reply-to :references; bh=WNp4gohR0kMr5GUi8PqSACf2MyhhTlb9SKT3Z79/9T4=; b=twMxox1j5ZbL95gYXoekLQcXlchJnp35cnmygkMhBd7LYjrZ/SYOPP1c+H9zKEtvUv eemqP+Nj3LiHn0g5JH53CY0sbmIwW6LjOSgY2VMD4wmh511lVbTP7XgVX/ycktHH0ptv BalyySn5bg3SounmloOCOJ322DRyHZbgbgSpJxvDtk30IVHxIgmiyvi3fI9SZZN08iXR COZfYmmSjb2hJsGzlg4r/vUY4Kj9dGFluXenA6pEVLyo3x2nZZWWJ081x/syDhc7OLm5 UljFtK2uzU7iONXornHkRfHWrdTxxXLtLxICfW157rDnVtvOfgS36nbMtQBJ9Xt4TQsE /oQQ== X-Gm-Message-State: AHQUAuZcJrI352rf1JagERx32ez7G8t1wOM9VDJtgWx75A0SBo6Cj+55 KXByGFxUL5qGjMxSsNvdG0V3PTk2jBfH1g== X-Received: by 2002:a63:3206:: with SMTP id y6mr6774105pgy.338.1549409103744; Tue, 05 Feb 2019 15:25:03 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id g136sm5926917pfb.154.2019.02.05.15.25.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Feb 2019 15:25:03 -0800 (PST) From: Mathieu Poirier To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] coresight: Use of_node_name_eq for node name comparisons Date: Tue, 5 Feb 2019 16:24:55 -0700 Message-Id: <20190205232458.7074-4-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190205232458.7074-1-mathieu.poirier@linaro.org> References: <20190205232458.7074-1-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rob Herring 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: Mathieu Poirier Cc: Alexander Shishkin Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Rob Herring Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/of_coresight.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/hwtracing/coresight/of_coresight.c b/drivers/hwtracing/coresight/of_coresight.c index 89092f83567e..7045930fc958 100644 --- a/drivers/hwtracing/coresight/of_coresight.c +++ b/drivers/hwtracing/coresight/of_coresight.c @@ -80,8 +80,8 @@ static struct device_node *of_coresight_get_port_parent(struct device_node *ep) * Skip one-level up to the real device node, if we * are using the new bindings. */ - if (!of_node_cmp(parent->name, "in-ports") || - !of_node_cmp(parent->name, "out-ports")) + if (of_node_name_eq(parent, "in-ports") || + of_node_name_eq(parent, "out-ports")) parent = of_get_next_parent(parent); return parent;