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: 152940 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp9695066ljp; Wed, 5 Dec 2018 11:51:02 -0800 (PST) X-Google-Smtp-Source: AFSGD/WGFti0DOuxjzL6q7cIYOGr5sR/uNHD5pIK9I8Ru2+CCKjof4apsYs19scZ/vMHMZtgTRr9 X-Received: by 2002:a17:902:12b:: with SMTP id 40mr24957288plb.72.1544039462036; Wed, 05 Dec 2018 11:51:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544039462; cv=none; d=google.com; s=arc-20160816; b=XaVHUoZqg1cljvY9evgC1qhSPkwbjeGlNuJIbgs+4auZrxBiqTDJR2IE5j0UCiCEba Y8R3OufCB8+tiy4QZTvDLdlfu4MSy09sXD6Gbbj6pV3f5W3LG3LCS+5gUZbWofr5mt+6 lFLy+pr2j6tmi5Jy4IANovW/ZCrMq/wDkpQMgl193wSR/ixUJDza3jee0gIxKySMMSck 5sGtL2au8hKTyoCqeW8agS0ZRfS3HDuP10oK8KienB5Q3B/fbl2QiLJVO8vlzWDOat4Z qXeCOJeCnRrG0YD6Nfbiw7hJbkLCc/GMbgmPJeN2R1uvqY8HZ7ulR4sCdQUSfGDBPNqA y4gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :delivered-to; bh=Nu1uS07clPfDbKIgH8hIBln2DHBTzyalBc08onKRnnU=; b=PKwDijuIGRqvTFFP6cei35yABOvMOrZpZa+sGBxCRJLzkueihUNOScztyc4MXXshjN hJD2G/lNnU7L8HXuJkMINzO5FELUrYdymxTtmmCZisjv+akltLugXUvwHAafcFJ//A2V vVjzNdhGdkbjssKOF2zteUrwnDbpJRogmkqol/uqjvUgBtaIwwe3KeQ+B5lfQ2c5Ucs4 9OBR3ZX18RsvpJexy+iUllxBPkXpHbqiqwJ4frknFaHTxIG+rp9haTDoY3zI7E4ENZbi iGPUwOnLdleD0DwvP5bSBX5MI/PBl2+92bN1qmFjxYrCh+M7XI9Up734awBx1rptt7NI sAsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id a193si21361054pfa.214.2018.12.05.11.51.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Dec 2018 11:51:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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-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" 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); }