From patchwork Wed Dec 5 19:50:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 152949 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp9695411ljp; Wed, 5 Dec 2018 11:51:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/V/22tGTumSRqgNgbk382c9yXnrXgY0b174qZJMz+znpzO2YXfi+WudyBBKfOfubsQHfSZc X-Received: by 2002:a63:4101:: with SMTP id o1mr21462417pga.447.1544039486201; Wed, 05 Dec 2018 11:51:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544039486; cv=none; d=google.com; s=arc-20160816; b=0hs0ekO/yocJJmeYC17qa9hpjFdqKGe4EgKtb334jpnfMdz3dxgj1XMpfB8v6D3IxB yfPOTpR00VOCEWvaFo6dVin2lY0j2AUHEYCMWwApcftIASqKh4VkVQi9fcf/mj1WoH8u VlWMTIFr4b9q+MKVBZpzd8IIoR3g1q2wuvam4X27BR8NEDdBA5tU6DleIM4qbrUyfqwG EgbT7y9/XdsmTqTj97TLmBM1v71FX/vOUnf7GHkCpOwjb2PoIZVZX6CLa97rRZSA4JCZ S5FEAOIB6xFVi1mvoQ1rQesoQifI2XVhWbRUkamAl53mNRDyZzHCl6fNDLfNh+UUYB8p 4ONQ== 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=HTzViSrJqivI4dizEA46cY4jDxDEUKRSrFYBbdnEZyk=; b=ElTKuTC/CA9IrhLc8QsxY8IsbxGshW76veznVLcL+8CgOucDxE0FVgPdr4RmGVLHhL VR1CpI9Y42ifOLIMfP2xoJOD0xYWoev3IaETqHhIvtMMVjsCE5vMETaym4vpEAOFJQUR GX3iZ4cveF5Hp4ZR8EBVjqHi4MEY34LLFOiOfKNsP7eHdp5JUMW4Ymkr8GQq33VDUAYe tqe9y0EhXSGgqF262Ee4V4XdGolpLuCkKvDsFEPxH+OHYbiheaKge24chWz+gT/IKZ/b +DM1UnvvMfezWq9g5yte6GrA9NPyYCg1a9qNLyjPhLY8M9drjC8uCL2I6Th0Z26zH8kI s1Xw== 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 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id a3si22394012pld.252.2018.12.05.11.51.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Dec 2018 11:51:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 24A256E4DF; Wed, 5 Dec 2018 19:51:25 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-oi1-f195.google.com (mail-oi1-f195.google.com [209.85.167.195]) by gabe.freedesktop.org (Postfix) with ESMTPS id C093D6E4DF for ; Wed, 5 Dec 2018 19:51:23 +0000 (UTC) Received: by mail-oi1-f195.google.com with SMTP id x202so18596524oif.13 for ; 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=dRiKwVdinvq40eibL+dA+3Z8fzo7Y/8P2R9iKE0JOE7I6PzWxWbRtVSxviD10J9mDo UNk628iwqUN+F0KXgLGibLCFRZbzbvOjKA9bYoElqYNQ3hqusbaa5Liojye9JYPzzBtH PVblOz8HQ7lZROUoXQHrML2ZH/dMkLqFU5U9faGKD1FBoYdNFuzozZTb1GlMbLA8jA1X GfU9JxCBp9YJ2X2u+YSJKfMrNL+WpH6PV6hs/7dGjGmBSLfL7OGt4SP799vBG0CMRbV0 ZoBphhWua5MU1QxuY06cPIY7IeRZ191Txl+Fu8n/CTDuDr71O61QNO1fXf0gBmHI+yGm deIg== X-Gm-Message-State: AA+aEWacYgUuSzxGGTfrYDZu4/LB2hKOl6p+UyaMuh6Pg5tKpRuBfts+ u0ur+l+h5rx+VCVnbC4c0A== 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 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 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: Daniel Thompson , Bartlomiej Zolnierkiewicz , Jingoo Han , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Lee Jones 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: 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);