From patchwork Wed Dec 5 19:50:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 10714781 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 25CBE13BB for ; Wed, 5 Dec 2018 19:51:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 161A02E369 for ; Wed, 5 Dec 2018 19:51:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A9C12E359; Wed, 5 Dec 2018 19:51:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 584142E362 for ; Wed, 5 Dec 2018 19:51:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DDAB66E4DE; Wed, 5 Dec 2018 19:50:59 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-oi1-f194.google.com (mail-oi1-f194.google.com [209.85.167.194]) by gabe.freedesktop.org (Postfix) with ESMTPS id 85CCC6E4DE for ; Wed, 5 Dec 2018 19:50:59 +0000 (UTC) Received: by mail-oi1-f194.google.com with SMTP id t204so18615737oie.7 for ; Wed, 05 Dec 2018 11:50:59 -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=wG9qhB3dKY9ge4bEEexb0MA1jfbsoKKi49Qcs8wQXFc=; b=bO9I0vbd8rKZB+7aAC1HgTCm1Ia/pRuX4pzPww76cmenYkXQ/GdvCJopk+SD1DeZY/ /SjMyhW9xx5B3Asy3VsHPQkSACcsMKD7HkUV0CzBL24gLyvXnZHKavKYj+J807Uo8pcB 6RhXzISOC7lZxL05L30umgsJAttA+l4BYxtpj/QHGLo8LFqODAYOqkiqZHypx1CbBa6R lCFmYdtQo2NbwuIPMyPkZkptCzhkDoW4fus/lumW/0iUYbD+3FTKHGsKJktlx37B2zQr rCIwWnugz/94Wq2MIObcBRuG8I3fzNXdeCaE86B3DpHtmIv8TAYlUpOxuI7rGUy2+nAj AHGg== X-Gm-Message-State: AA+aEWb0Fs7/QPa2yazMgZtWpwVjDjC3rb/wpRegD2ysHd9Cl7SY4Llb rUV1NTUyayOQqWvK69fZxQ== X-Google-Smtp-Source: AFSGD/W8hg/Zs71toStVhWNB/EEOfXSP2N1MO4wk6f2hy+Zf2xQN4ZLTx7JTFLtMJ2jI0HRZ60TGYA== X-Received: by 2002:aca:db85:: with SMTP id s127mr15028991oig.165.1544039458748; Wed, 05 Dec 2018 11:50:58 -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.50.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 11:50:58 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm: imx: Use of_node_name_eq for node name comparisons Date: Wed, 5 Dec 2018 13:50:23 -0600 Message-Id: <20181205195050.4759-7-robh@kernel.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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: Philipp Zabel Cc: David Airlie Cc: dri-devel@lists.freedesktop.org Signed-off-by: Rob Herring Acked-by: Philipp Zabel --- drivers/gpu/drm/imx/imx-drm-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index 0e6942f21a4e..99ec6e5f89dc 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c @@ -198,7 +198,7 @@ static int compare_of(struct device *dev, void *data) } /* Special case for LDB, one device for two channels */ - if (of_node_cmp(np->name, "lvds-channel") == 0) { + if (of_node_name_eq(np, "lvds-channel")) { np = of_get_parent(np); of_node_put(np); }