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 (Arm)" X-Patchwork-Id: 10714809 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 C0928157A for ; Wed, 5 Dec 2018 19:52:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B03BF2DB4B for ; Wed, 5 Dec 2018 19:52:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE5982E380; Wed, 5 Dec 2018 19:52:06 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 528F32E290 for ; Wed, 5 Dec 2018 19:52:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728259AbeLETwA (ORCPT ); Wed, 5 Dec 2018 14:52:00 -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-Google-Smtp-Source: AFSGD/W6YA1YDCRuDZ+g49HJkJtNXQ5G0y4DAPjyI8KFIX4SoaOOmN4tKzhOm0vsvWPneHC8VsbXcA== 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 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org 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: 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 Acked-by: Daniel Thompson --- 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);