Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9878732imu; Wed, 5 Dec 2018 11:53:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/W1EtJyT6bhahug4/aJzTGontpR+PT14Nzg9C7C5ufku056TYB+P6tKDo8uCKLMeiVWpTqc X-Received: by 2002:a63:94:: with SMTP id 142mr21264266pga.74.1544039599595; Wed, 05 Dec 2018 11:53:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544039599; cv=none; d=google.com; s=arc-20160816; b=yAK55XvaCGhJaqMk/9NDp9HDWPzgbVV9AR1qW6xfvKNYFyX068hlB1giYLRz1PX/g1 rtDQ1m2FhvplaPbc4UGik42TKXSFkNBn2649BcjhxsWKUBayctezRFYh/dH5eoIy3WEl KWNeEj6WXgb98xSioCZBu21bW+vmC7gJLAF+XRNja4rciPAPC1XgfSZaHO4NezSzVcCq rcZduWktX1h/XaVwYzZq80Syo8K4/u4kx9krNgJsZofOLH6SEeLCwA7xNZ7VFZqjT6SY OQ3iAgOuKL4YGRYoMeYqa529K4BB9xlJTdHIJ/nlXgtLhztxr9NpIjjOnh+kBsOec4XB NNNg== 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=JCXdYlnAt2HdHVZalF+fwjEn668jWlLT5LjFiqstols=; b=ouVQIbIc5bZIArqjzygzPUQ9FFAOV7NJ+03RcM7Icge0T2Xm879lSh2iM2/WF9olDH wFaKaA/+YV8KzUGmr4+cx+Oz2GdMWhIZmekQTZ/FfeB6X6FhE4EX/aNRSuiwytKp1xNW TXb6QRskFgOrtqgFDkVrUYZCkXLgaLXy+5eZ9dpBiB0tTP6aN0NpRytaEGzzvDxO+tQx xZqTGcqwdYT6t2fHufZn8v1MlBioTjjO0WLI4Oqp2EmVnVfJvNQTG4PItHc4+TuQeGUG UTjeDLtseSVCR6+BORJ7c6RBZ5qZYsTbKa7LB7drevgi/+IMs6KLc8v1RjSm3rJ2g8Yg soig== 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 1si8725512plr.189.2018.12.05.11.53.04; Wed, 05 Dec 2018 11:53:19 -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 S1728939AbeLETwB (ORCPT + 99 others); Wed, 5 Dec 2018 14:52:01 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:40337 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728838AbeLETvY (ORCPT ); Wed, 5 Dec 2018 14:51:24 -0500 Received: by mail-oi1-f193.google.com with SMTP id t204so18616815oie.7; Wed, 05 Dec 2018 11:51:23 -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=JCXdYlnAt2HdHVZalF+fwjEn668jWlLT5LjFiqstols=; b=WtpNqB/SDH0liYKR45jaWN3x1fZANuH2xvbz+zNDXhSRAkJULSeVLYw9a6agMlot4g lz3uwgAPIjq6sU86TYIYHFlMOA+uq9deP09STPcoV/nR6WFA6RVssvfPC5KXA42Yl4Qx zXQMh519Wr0hoeMrRQBUSg91MF/B7YnWEcRjZM6YVD372DwkWcGfHoDmPOMBth89qIYe mREG9lwp8zCNoB8oBEi5m/DLGPJLPOIBfM8j71DF8tX4dkMOxH9LvFz5g68vr5V83RHW SPqgc0MXqRkEIc6O1Kv9NxWUOs7dZRDGMHUtjww4nD2qT10aMsZ7O9D4JMv6GcD9Esqo ikXA== X-Gm-Message-State: AA+aEWZgYLNKseIzicYFG++r3RQd27kmuVZSdItS6FdV0zzwR5SrIINv 4XfYo9XxcjaL88pNnikBnda6hBYACQ== X-Received: by 2002:aca:e495:: with SMTP id b143mr14757328oih.286.1544039483012; Wed, 05 Dec 2018 11:51:23 -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.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 11:51:22 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lee Jones , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Subject: [PATCH] video/backlight: Use of_node_name_eq for node name comparisons Date: Wed, 5 Dec 2018 13:50:44 -0600 Message-Id: <20181205195050.4759-28-robh@kernel.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: Lee Jones Cc: Daniel Thompson Cc: Jingoo Han Cc: Bartlomiej Zolnierkiewicz Cc: dri-devel@lists.freedesktop.org Cc: linux-fbdev@vger.kernel.org Signed-off-by: Rob Herring --- drivers/video/backlight/88pm860x_bl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/88pm860x_bl.c b/drivers/video/backlight/88pm860x_bl.c index 6d8dc2c77520..51e0c4be08df 100644 --- a/drivers/video/backlight/88pm860x_bl.c +++ b/drivers/video/backlight/88pm860x_bl.c @@ -174,7 +174,7 @@ static int pm860x_backlight_dt_init(struct platform_device *pdev, return -ENODEV; } for_each_child_of_node(nproot, np) { - if (!of_node_cmp(np->name, name)) { + if (of_node_name_eq(np, name)) { of_property_read_u32(np, "marvell,88pm860x-iset", &iset); data->iset = PM8606_WLED_CURRENT(iset); -- 2.19.1