From patchwork Wed Dec 5 19:50:27 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: 152966 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp9697263ljp; Wed, 5 Dec 2018 11:53:30 -0800 (PST) X-Google-Smtp-Source: AFSGD/WvEyProXbL3SdBOontY7SKim2zkOUnNt64rfSACsyTMecKD5LNqzwW20jWpjyfGZoG3rne X-Received: by 2002:a17:902:2868:: with SMTP id e95mr25535927plb.317.1544039610601; Wed, 05 Dec 2018 11:53:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544039610; cv=none; d=google.com; s=arc-20160816; b=jn52RuR4yix7it2+y4V2zDqFXBL/Et+TNxn5sm1zn8X0lNI8AL4Z9SQ7UTqbDC3FUq ngzE3UKsXXb9/5K5sq/EuG7qFdjUnDnrFxJWXsh6BFHw+KhLf5V29R5A3ikefDS4I5c6 c0JYVNVhZKKLHeBmv54KAKB70Ml+1igSQ5k5VmzD5caGa0rbI5L6QkqfTbZCOEg8td9b dxxQxUpr77h1MQSprRQy/0cKRw4LxKgJm0Obqv9I9ODpVHOif1UiDKMUsQFrgG+l5ujd O9ojcCW0txAM+vT9DvQuvJGIn/gyyP1fbu9OEGvqicDyQALVr1xl/+xdW4KpRmu3FE/d rQMQ== 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=GZgjkFET1bzPb4auc4sTGGACiXRluVD1e+x+cDDczS0=; b=hqr2ovp5RrMa8EOoHXgxXp5r4zIx0S7cnuvN/3sn1RQwbNGuy9og5NF7Gxs6ZxxPJf lCPtC9X+YIrQz9UTUfomJwdRxXozLxfFgXpIijbm0bELXLS9rXZjPrYH+toeQlwYf9SI gZCYAe2XAPsJCP9PPz9kBQrw6K2vC/M2WAR8xboe61EKEsJEQw1wzoBRqc1/jSRNznSF HfK1sadiKvtIbFPrbLiVhEx2aPizRod2FpC2lfir71VvN0gpLizZjYkJJSvaAXSJ1Qds gqTtCAsmCo/aoRI8sIsuf6NJN3JdgC18hcaApK8MgLUGVeXJeK3iQonnK9a6HsZ3EcSi m92A== 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 y6si19570000pll.384.2018.12.05.11.53.30; Wed, 05 Dec 2018 11:53:30 -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 S1728618AbeLETx3 (ORCPT + 31 others); Wed, 5 Dec 2018 14:53:29 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:43291 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728680AbeLETvE (ORCPT ); Wed, 5 Dec 2018 14:51:04 -0500 Received: by mail-ot1-f68.google.com with SMTP id a11so19777642otr.10; Wed, 05 Dec 2018 11:51:03 -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=GZgjkFET1bzPb4auc4sTGGACiXRluVD1e+x+cDDczS0=; b=WcPRhQr7ZzXHYle6GSrcNfsuQwoKJpWQ+1dmhtCxyI40rQtJT3FqC2fNagMgNInPZh TLQ60F9cD670xVMXyYkHl8GVp8GZf5iXMRBsswG62jmuTaH9YuQ1v9V2UPPykXIxjBZA tid0beFi58VdvCO9fh73s21BHB1Zi6CNHWZhNAlcL66idBZhv77oUb7IG3hctrVsRxUS uFzKlQVnuz2cJx6vSVkdcXjpwOc8SDtv9Lf18Fey020QXl3PhjzbcCpikewyNqjB1ZAr DWEo6oWL/hUL3wAGN4qyvfpF2J1H3NZ+OAMpONWUN7jsN/UiO+RLcmJHwf3rJ4rj3weM vBiw== X-Gm-Message-State: AA+aEWbAMBK+xyYrghnEEY2b6M9V4dxRjtPY7h8OyRlhOO/yc/lAE8X8 QcPwPYjEVTwbshw2+ipVj9wNHt0= X-Received: by 2002:a9d:7dd5:: with SMTP id k21mr16953195otn.214.1544039463067; Wed, 05 Dec 2018 11:51:03 -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.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 11:51:02 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jacek Anaszewski , Pavel Machek , linux-leds@vger.kernel.org Subject: [PATCH] leds: 88pm860x: Use of_node_name_eq for node name comparisons Date: Wed, 5 Dec 2018 13:50:27 -0600 Message-Id: <20181205195050.4759-11-robh@kernel.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 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: Jacek Anaszewski Cc: Pavel Machek Cc: linux-leds@vger.kernel.org Signed-off-by: Rob Herring --- drivers/leds/leds-88pm860x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.19.1 diff --git a/drivers/leds/leds-88pm860x.c b/drivers/leds/leds-88pm860x.c index 77a104d2b124..036d4a536697 100644 --- a/drivers/leds/leds-88pm860x.c +++ b/drivers/leds/leds-88pm860x.c @@ -130,7 +130,7 @@ static int pm860x_led_dt_init(struct platform_device *pdev, return -ENODEV; } for_each_child_of_node(nproot, np) { - if (!of_node_cmp(np->name, data->name)) { + if (of_node_name_eq(np, data->name)) { of_property_read_u32(np, "marvell,88pm860x-iset", &iset); data->iset = PM8606_LED_CURRENT(iset);