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: 10714793 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 5738513BB for ; Wed, 5 Dec 2018 19:51:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A1982E290 for ; Wed, 5 Dec 2018 19:51:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 483E22E38D; Wed, 5 Dec 2018 19:51:31 +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 17A962E290 for ; Wed, 5 Dec 2018 19:51:25 +0000 (UTC) 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-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 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" 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);