From patchwork Wed Dec 5 19:50:50 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: 152955 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp9695682ljp; Wed, 5 Dec 2018 11:51:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/WdH0p0qNnirAkNjmQXtWoB3HAjxDJXJfqUJYPxLjTkApn7fXlzs1eLhnOkFhSTbLVIJhMx X-Received: by 2002:a62:2547:: with SMTP id l68mr25343247pfl.131.1544039503615; Wed, 05 Dec 2018 11:51:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544039503; cv=none; d=google.com; s=arc-20160816; b=qDroagYOvwB+KuQ7Vmfxb3V7L9AKrjclwjbmu8niOsFlTI11OtVdjW1iwz5SVm2/yp T2BZp2AMt28Q55ILIPSVOCfYpqmtcHLe0uNaf2B9Z25sMJgeLsxdDXwIVFDXWdjPIoLa kE+WBmqb0xk+nMo62yv1Mtwl0Ct4Xz1md/WI/uHcAnaOym3OAFxycXKGbM4VPmFoUvwF fNqFI4sYXZ15oCLPfYuJofqc3aFsD3f3XAqVPVwnyXWY3ViFNaNbbp3a4FkyoDTMw1n3 n9cktO4mst1MqW/Dz/PCBmxalYxi9pGl9bS0UvuGjHoHT0QHS7NoH4VwwKU1wehJNcwE 4MPA== 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=qctK2c2J3l+tBzpOg1oUnoGeCH3cH1/L4PcrunO1KLU=; b=e8jAedJItsru3676iPhGN1LhFdeIHg4lfOtJTjp10+n0R5QZtIYjaIIGAC1VK/ogex gr4LcPp18sakaSYJvPwNwWcLfYU9niYzK/45laXYBizylhB+5+7X1msrI/LXVxSvUpDW 490/8uB1tm/ESuFHJxfd3/eT8y2+kbzOHghCIzpFn7KkdDep9A/BuCxcrsOkpWVZ84lp yqfsMKxxohzLz00vGHL4v7US5TxMhiQ7ba9gMUS199D3IVBji1X1H7t9D+e06Obocc10 QQ0pzzWbBUnO9iVb/qLSzr3Xikd1uw/MnODdgwYAlNGioGGjyB1J0ygtl8W4xOR+tu2w ASDw== ARC-Authentication-Results: i=1; mx.google.com; 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=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 31si13592948plk.310.2018.12.05.11.51.43; Wed, 05 Dec 2018 11:51:43 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728912AbeLETvl (ORCPT + 31 others); Wed, 5 Dec 2018 14:51:41 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:36365 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728871AbeLETva (ORCPT ); Wed, 5 Dec 2018 14:51:30 -0500 Received: by mail-ot1-f66.google.com with SMTP id k98so19828844otk.3; Wed, 05 Dec 2018 11:51:29 -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=qctK2c2J3l+tBzpOg1oUnoGeCH3cH1/L4PcrunO1KLU=; b=GT4oyBxAmZTehgkEiNV/7U1+glJe092cnQncOzxaCb1nQCrpdJSVlaBKVO/itHqzmV 8J90f/F4M5eGkQDQyaEuy2aJfviMJ119aFyJ5CR6S7pufF9M6s2vJ1B6QhlNcc0XtTc1 sBAUmVzCLTqs7fZYyS0/QGnQEewqBtTUildnlt4xxhKB3yQSj69QRWuflOZrBitShxtF t1YPNDaSh8PVeSbbK2gceg62Xvdzf+VKRYGenXlpLRCNh4Vlon/rn1R6X6A8DsJXZTbQ 55VJ8LDFAv9R/pc9yazpRBFiX3YBjBAr+dKKJGV2JyH4DBWtrFWpVRqtKfO69i8nHZAh ihEw== X-Gm-Message-State: AA+aEWbtcyGgS4jmkS6LuLs0tTv+iF55OCPnz7SqOJPnKKqygg6/GtWV 5cYMu0brEiqNi8U39cj68OX14yNnOg== X-Received: by 2002:a9d:77d4:: with SMTP id w20mr15762782otl.196.1544039489380; Wed, 05 Dec 2018 11:51:29 -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.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 11:51:28 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mathieu Poirier , Alexander Shishkin , linux-arm-kernel@lists.infradead.org Subject: [PATCH] coresight: Use of_node_name_eq for node name comparisons Date: Wed, 5 Dec 2018 13:50:50 -0600 Message-Id: <20181205195050.4759-34-robh@kernel.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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: Mathieu Poirier Cc: Alexander Shishkin Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Rob Herring --- drivers/hwtracing/coresight/of_coresight.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.19.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;