Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10736287imu; Thu, 6 Dec 2018 06:04:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/VGSQ6hXnhhjW6ZTFtQuKVdLk9dgJqNvXrlQBBWYt3cQnq9n1hhOlaIL/wR2dKr34jsGfj2 X-Received: by 2002:a17:902:9887:: with SMTP id s7mr27726558plp.199.1544105061629; Thu, 06 Dec 2018 06:04:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544105061; cv=none; d=google.com; s=arc-20160816; b=XJntjkdaPTThwfp7IuHtFosXWPRb2jwUxNbsdUhEQEgQuQx4vpd685QvzQIryz7w98 juzkr6GNl6vr0V+3dmAxPgsRVWT/j1ZjevAvtsK7rqmCf99E7VsMFa5DiPwOK0Iszt+9 XfXYzi0jPRvxuQ8X6Pcpv6s9FGN7kRue2m0YY392OcGGPllXNbrg574qxxEcp28hGrLz Mwa6is5LYJk3xsW8XAz2cDDrw96qb9kA+dZEIiR4RPJrn13is5zrj6l9qeTloSaCaL/B 0rjfvpErPokj4eP4uURdtmoje7Nd+WdBZpXDUjXVXGJQTo0dTw0Ujjmlc8olCbF3ghli +Lrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kB34XZmDHLwF0IkhTK5ZXKAQOuz+S8TT+1tfCKZPkSc=; b=CtFxVMT8VQ9AZ6L+1YjX/C9sp+QZFcw/4rbmYmWzuiIqC4CqQq9R0WgYvQxmsSBbQ1 LbUy9mPBrdg9ZrAa9KtMU/cKhlWuvtABfDw4hIPEcHUdMm6YlNAwfmjjEKU2xUD9trP9 bqjmeWJS51Yel5av2FhHoW6MTxNNY7pqKE7A5EP4Qx4GIZzKe30RrmIsD00FwU9hBiIU +jAgRpxpUIxn8uiFkCAKoTohGP2atYWLs4Z0ZDs8w35iflW/ojdN1m2dBt6HCCWBfTrS cFPmutkZ1pLPpVOf8j5/HCncyA6azWYIuIy0Y4XbNWJNY15Kjv0zMkoWVEQzrOP/Y1lY uqQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IFRZ9mb0; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61si366011plz.117.2018.12.06.06.03.57; Thu, 06 Dec 2018 06:04:21 -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; dkim=pass header.i=@linaro.org header.s=google header.b=IFRZ9mb0; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729180AbeLFOC3 (ORCPT + 99 others); Thu, 6 Dec 2018 09:02:29 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:38212 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728209AbeLFOC2 (ORCPT ); Thu, 6 Dec 2018 09:02:28 -0500 Received: by mail-wr1-f68.google.com with SMTP id v13so606654wrw.5 for ; Thu, 06 Dec 2018 06:02:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=kB34XZmDHLwF0IkhTK5ZXKAQOuz+S8TT+1tfCKZPkSc=; b=IFRZ9mb0Wxl8Z6ggml7mwYPy6K4sQoFDoJ0/OdE7UykjbdD8OTArJrvIhQKl+JrBdm LatQcEdeJAZW/9O11w054sLYlBoWuiQxCYFpCl4OoeMMGDCyA1at1WJ5Dr0fGXZDaJG1 rtFOCM/Y1B09un9jQE6oImJ0S16hEwroz9RtY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=kB34XZmDHLwF0IkhTK5ZXKAQOuz+S8TT+1tfCKZPkSc=; b=sUKAC+8t1vU+Cuz4Lb1M2zvxA15laBDmNm4EiHg9LcKxtCuZPlSHH4VW8zTBENy4zy E8rAVef76tfT5Wcoa7CNsZjry5XwXo6ZZBUkryhbG0l462EDvDW0+/PL/3YUFxqJLGWk UUVqLoQtZCQoARmX5ed98MpxYOBVmE4xcDgaKarPyRMHp6Bgaj0ZPy73tlqve3ArNpu0 +jpcn8fZCkqFI3kqncvFUVupuMFRBqXEZApxxw36dVBUHyn6A9RmidAf/AkV+oztRo7g CwsZRbFmwTlkslw7ICuNCOs9dcoitP6wiSQvFM86ChTEn2dLDl6utJYtyeL31pV8APAN PObg== X-Gm-Message-State: AA+aEWZDjtBK7m+b3VNRUnkDbAEkvs9MOqA44loHRa7ccX1NsrWZ/ye5 5bMUlU+9/X/JU83W/vdEaL5mag== X-Received: by 2002:a5d:4586:: with SMTP id p6mr24687403wrq.69.1544104946035; Thu, 06 Dec 2018 06:02:26 -0800 (PST) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id k19sm805331wre.5.2018.12.06.06.02.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Dec 2018 06:02:23 -0800 (PST) Date: Thu, 6 Dec 2018 14:02:21 +0000 From: Daniel Thompson To: Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lee Jones , Jingoo Han , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Subject: Re: [PATCH] video/backlight: Use of_node_name_eq for node name comparisons Message-ID: <20181206140221.rq4zp74olghzipxu@holly.lan> References: <20181205195050.4759-28-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181205195050.4759-28-robh@kernel.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 05, 2018 at 01:50:44PM -0600, Rob Herring wrote: > 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 [this is FAO Lee J. rather than recommending you take it via you tree] > --- > 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 >