Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2291476ybi; Mon, 1 Jul 2019 09:27:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxCXjz+erEiQAMeLaJq/pkmDtPWXnCDMhK0cxkQxnK4KrWcSLeuXKZ1UAWA9X47SkpWjG4 X-Received: by 2002:a17:902:2aa9:: with SMTP id j38mr28710350plb.206.1561998438038; Mon, 01 Jul 2019 09:27:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561998438; cv=none; d=google.com; s=arc-20160816; b=w5euwTjUPLNhTn+n9NOEfHq9wXminhqQNf9XazVwtM4jyqYjtw2PxoDlVs11U6wb/p bNsYXLCXHqROl70basN1q+JCddwmMtNaZVFk8mX3JIae406G8JPr89MjXeF7ookMx1ah Cm6C8tZ7o6xgzxGRMA/DlYwuYkl7SFtt4LcoAgd1dWs7sMTkhQXK9gAUXQV+m+sWiuKk z5y3gAOJE0wSXIgWH1sC+hN5azr6aJ5ffSNia4vJjg8GW/SNJqxyPt9LkgZ4IzU1eKAT a5ZVWYLjR1tB6lbfAw0Psb0yee6kaVZuh1l/MXgzlB0zknMlDNBaW+XcygMXpBPyXAH+ yfZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=qiiHsLzsZ4QEZAB3usis+CPLGFeEmBSVwIuh3luO7b8=; b=JFA1waOE0yoRrGOkaI285v9eyvOXKbk/0An9/QLSM3gnbs3lMi/wP6lAj+fRfRge2i N09DkkcxxeIJ9tddjmdOl2PaquKYOWhrnNu3BOVmHUFdOiFXgVTNCBe9fgbP6rqcpm5p IJBCm0oggR9+flu0Ge6ZA3x924oz3B0OuQ14d/g12XhEOQxPJ3rLoFsPEUlsPXx6F+fP P3vP2dgUWnZ4ljQ/4vh2F0MnqqMqfBg2K5AH1U2q2u8NDTRBM6bEsBHXgwVVhh4a2xYo cj2M3mBgDdLuAFGfzVWKzHj5PCE+dpzJlsNAz5VKDmqO+sIZZ8cesp40B4eCL5N0b8PK T8cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=LfUNUA34; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si10671099plx.412.2019.07.01.09.27.01; Mon, 01 Jul 2019 09:27:18 -0700 (PDT) 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=@ti.com header.s=ti-com-17Q1 header.b=LfUNUA34; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729334AbfGAPhF (ORCPT + 99 others); Mon, 1 Jul 2019 11:37:05 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:39014 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728170AbfGAPhF (ORCPT ); Mon, 1 Jul 2019 11:37:05 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x61Fb2tR130506; Mon, 1 Jul 2019 10:37:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1561995422; bh=qiiHsLzsZ4QEZAB3usis+CPLGFeEmBSVwIuh3luO7b8=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=LfUNUA34e/+R8i6WXxZjmp07oDZEyjs0ZMIV68wE3GAaNLfP5UNJ5i8KjKZxj7vFU xJerW/HeieVmVQGGWWKBwJXeleIG2J6rZMQmTeEUWCWurTMNzQf2VR7d5nGjR26JLr 5xdIahBZhPMtCh7hUunWY696y9X2KNCSoEGPBamU= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x61Fb2Tc083526 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 1 Jul 2019 10:37:02 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 1 Jul 2019 10:37:01 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Mon, 1 Jul 2019 10:37:01 -0500 Received: from [10.250.65.13] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x61Fb1SN040518; Mon, 1 Jul 2019 10:37:01 -0500 Subject: Re: [PATCH 2/2] leds: tlc591xx: Use the OF version of the LED registration function To: Jean-Jacques Hiblot , , CC: , , References: <20190701152602.31716-1-jjhiblot@ti.com> <20190701152602.31716-3-jjhiblot@ti.com> From: Dan Murphy Message-ID: <102194fe-e4d1-fa36-16f7-2a933e646bb5@ti.com> Date: Mon, 1 Jul 2019 10:36:34 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190701152602.31716-3-jjhiblot@ti.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org JJ On 7/1/19 10:26 AM, Jean-Jacques Hiblot wrote: > The driver parses the device-tree to identify which LED should be handled. > Since the information about the device node is known at this time, we can > provide the LED core with it. It may be useful later. > > Signed-off-by: Jean-Jacques Hiblot > --- > drivers/leds/leds-tlc591xx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/leds/leds-tlc591xx.c b/drivers/leds/leds-tlc591xx.c > index 14e47ff44df5..6a2936c94b73 100644 > --- a/drivers/leds/leds-tlc591xx.c > +++ b/drivers/leds/leds-tlc591xx.c > @@ -207,7 +207,7 @@ tlc591xx_probe(struct i2c_client *client, > led->led_no = idx++; > led->ldev.brightness_set_blocking = tlc591xx_brightness_set; > led->ldev.max_brightness = LED_FULL; > - err = devm_led_classdev_register(dev, &led->ldev); > + err = devm_of_led_classdev_register(dev, child, &led->ldev); > if (err < 0) { > dev_err(dev, "couldn't register LED %s\n", > led->ldev.name); Reviewed-by: Dan Murphy