From patchwork Wed Dec 5 19:50:42 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: 152958 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp9696188ljp; Wed, 5 Dec 2018 11:52:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/XbjigCCnUZxc2A/jOkXF1cgFo4+8f6m7Pi8Z2aEs5S2flFTbALeS6G9Ld6S62Ab+lQjaEx X-Received: by 2002:a17:902:2e01:: with SMTP id q1mr6356043plb.97.1544039536769; Wed, 05 Dec 2018 11:52:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544039536; cv=none; d=google.com; s=arc-20160816; b=kwi9UVhFeF883o714YyBY/PmOjOebvZxnwx8pR2gUA8DSwn6bYi5sRW7Rd6SPMM3Yx dUlcLmvmwdHhJA0IMlelOjN381KpbIWC2sCYVa5suO1INFV14x32Vg8k7cDW48L31ELX 5n38hpoToIt+9DI3vm1i4sBh++Ir2IIcJVT2eK3gpmthrTg179A23cwvjyeHnk3hrWoc mtzP66Ab6InTNROWraDFLlf2TzxuryEPsvmyEXqKOOj1LORBSsbp8f8DvM5DiHyXmlbe MOqY/B1LUiAmmYMzvhvUWYXQz+lx3kWjEI7QCG+Pxi9q0bJeieST4DgQvyhWX0TbOFB7 LeXw== 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=MMVAItaPQNomVIDd3mLLrLoJgcsDQny2bzxp0CMIwjk=; b=ZVbFSgXy2DTsR2QLtrhctvA3BjSV4nXkJXdN5AG+y5EWyGcIHPw8VdcEpXBk85X1Tx BsBofAIfZuzWnsPYUPehoXU87bTOpUmBo/Ilgjmn6DU1IHbK+6HN5nq0krY6wimbS4lw nZWC4kkQr6q+uBo02I3UwCCLpgaRTFNbKnr/QZxv0G98iBSNSD/SSNN7zvm5OyXsArdj kzfAV9mVeRLwW9v09SSx20n9NZHUWJ+2q29B9EUNIoEF7v4QfC5QVCUjnnCtR699u9ZY wDgVHZzDZ48EkqGvptnaKieQWP6xwKyo90p4JAFLzhYp7pgrU10fT/FCcHu2ZBM47BwW VYaw== 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 h19si21917340plr.67.2018.12.05.11.52.16; Wed, 05 Dec 2018 11:52:16 -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 S1728972AbeLETwO (ORCPT + 31 others); Wed, 5 Dec 2018 14:52:14 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:44291 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728827AbeLETvV (ORCPT ); Wed, 5 Dec 2018 14:51:21 -0500 Received: by mail-ot1-f66.google.com with SMTP id f18so19782086otl.11; Wed, 05 Dec 2018 11:51:21 -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=MMVAItaPQNomVIDd3mLLrLoJgcsDQny2bzxp0CMIwjk=; b=RlNZoPd3/BFVl6EvI5SKMpjCp+oW5YXMbFyjQ3hmWEQKEp6oqQjwTVevQbZvUSGmhB C4c7OHH8MwklUOlFtCAhtf+crhCIw3zVhfs/ycIBr3PBouqckbA2mUShYmjIT086HC+r S/qGsoXPWquRlHiB2ujunk3sjUzxByJ3GcnViDBmxm6tbML9jxDtVEk9nzw9QPUQU2/e 17iLeDmuhTfkTSvsWCrnqY1ql7a1K1QnZxkMjV+0YV3WLTq2gZfSLJiVYYd5uW0L986h t9B448RBDNYD+QBV4eHY0l/3V3UPNrMsBGfHMWpTeflwg0dw81LqITbvKOzPaokPv4Dq NLzw== X-Gm-Message-State: AA+aEWbYuS9n9BchE1LF8Zt8zvKkysAdhKFnKjBvkXhZIQWeVsZqrh65 QtV9fDlt8OBEr7NxkWz5XoKx6/qdTA== X-Received: by 2002:a9d:7b42:: with SMTP id f2mr14871732oto.184.1544039480615; Wed, 05 Dec 2018 11:51:20 -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.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 11:51:20 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Steve Longerbeam , Philipp Zabel , Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-media@vger.kernel.org, devel@driverdev.osuosl.org Subject: [PATCH] staging: media: imx: Use of_node_name_eq for node name comparisons Date: Wed, 5 Dec 2018 13:50:42 -0600 Message-Id: <20181205195050.4759-26-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. For instances using of_node_cmp, this has the side effect of now using case sensitive comparisons. This should not matter for any FDT based system which this is. Cc: Steve Longerbeam Cc: Philipp Zabel Cc: Mauro Carvalho Chehab Cc: Greg Kroah-Hartman Cc: linux-media@vger.kernel.org Cc: devel@driverdev.osuosl.org Signed-off-by: Rob Herring --- drivers/staging/media/imx/imx-media-of.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.19.1 diff --git a/drivers/staging/media/imx/imx-media-of.c b/drivers/staging/media/imx/imx-media-of.c index b2e840f96c50..a01327f6e045 100644 --- a/drivers/staging/media/imx/imx-media-of.c +++ b/drivers/staging/media/imx/imx-media-of.c @@ -162,7 +162,7 @@ int imx_media_create_csi_of_links(struct imx_media_dev *imxmd, fwnode_property_read_u32(fwnode, "reg", &link.remote_port); fwnode = fwnode_get_next_parent(fwnode); if (is_of_node(fwnode) && - of_node_cmp(to_of_node(fwnode)->name, "ports") == 0) + of_node_name_eq(to_of_node(fwnode), "ports")) fwnode = fwnode_get_next_parent(fwnode); link.remote_node = fwnode;