Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3760460ybi; Fri, 5 Jul 2019 13:26:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwW3+E2vRcfwXruT7+IUoiWsCyBEm1T8V1wOAEPbP8q9OzW6bgdzgJUC1JgNQ2hJ8i3aCSe X-Received: by 2002:a17:902:b70e:: with SMTP id d14mr7634695pls.309.1562358388982; Fri, 05 Jul 2019 13:26:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562358388; cv=none; d=google.com; s=arc-20160816; b=nnDYJf4agH6HjolfO7OKiDmoWQXI3KY6ru72ZHHjiWXcqnWThL5n4eRCHWIQmhP53J P8FUKYpBQ2CUVLrBwPAFWNP6/bRYq5Z8Ca1CmFIbnk0uR6Uo8CTQXpsw7y4BpL7XInsd 0O+yRgo1vU0ZL5H8ly6CYo6x15MgBM3tHs3rtNPqM3kSntVDpzV4vAEB3bO2FDtW9tEF IpcgLaCNrhRlE7iAeHf8OBuxgmRzG+YIX2q1pHTiIODP9lpz2uMbXr3wrtQYmFSm1qVh Re79mFAz0wm3vOm3Gyn1GMXNTNUZBKxHHEc/u/iQqVG2pJovhvkVGxSbgufBbhdzyWwm 3Kqw== 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; bh=Y2iwCe1Pgzj/wwhPEZ6L5uHdfwWIw/yPNOA5/lHgZsU=; b=Lq/mzgn9etpzyGMAqztqlxXMjLw+g48oPw+2EZuTVyGDHHpuk5RjGa6ZKwO+qs6Ajc yI46HjNYX6RuBpts7S8INHqCTcuQRrVJKx1MfmcKgO/3pHDGf9qs57kZ4H5G4T9dyDEc MJj6HDGDStdIkB05HiyApyV+7Esf2+3GCWHUW3BKSq2HRp6gCWBe6XaT7ErGrwvZd2ah 5xsTmJSdXTGAagvsY6uGdVQLRpLNqeGgvVfQt8nBYIeBZw5Vd1D7BBbZUPLjmTE20L2L DFSlQ9cASVyP0kG5W6Jry4CjDeBylCMN9X3+C2Fw9ESEMkvTJcofp+jViW2rXTKD2/Zy Liuw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a15si9243606pgw.246.2019.07.05.13.26.13; Fri, 05 Jul 2019 13:26:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727807AbfGEUYf (ORCPT + 99 others); Fri, 5 Jul 2019 16:24:35 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:37503 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726005AbfGEUYf (ORCPT ); Fri, 5 Jul 2019 16:24:35 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 977D980594; Fri, 5 Jul 2019 22:24:22 +0200 (CEST) Date: Fri, 5 Jul 2019 22:24:33 +0200 From: Pavel Machek To: Jean-Jacques Hiblot Cc: jacek.anaszewski@gmail.com, dmurphy@ti.com, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, tomi.valkeinen@ti.com Subject: Re: [PATCH 2/2] leds: tlc591xx: Use the OF version of the LED registration function Message-ID: <20190705202433.GB5445@amd> References: <20190701152602.31716-1-jjhiblot@ti.com> <20190701152602.31716-3-jjhiblot@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mojUlQ0s9EVzWg2t" Content-Disposition: inline In-Reply-To: <20190701152602.31716-3-jjhiblot@ti.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mojUlQ0s9EVzWg2t Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 2019-07-01 17:26:02, 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. >=20 > Signed-off-by: Jean-Jacques Hiblot Acked-by: Pavel Machek > @@ -207,7 +207,7 @@ tlc591xx_probe(struct i2c_client *client, > led->led_no =3D idx++; > led->ldev.brightness_set_blocking =3D tlc591xx_brightness_set; > led->ldev.max_brightness =3D LED_FULL; > - err =3D devm_led_classdev_register(dev, &led->ldev); > + err =3D devm_of_led_classdev_register(dev, child, &led->ldev); > if (err < 0) { > dev_err(dev, "couldn't register LED %s\n", > led->ldev.name); --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --mojUlQ0s9EVzWg2t Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl0fsgEACgkQMOfwapXb+vKPnQCfUiBHIn7co+XTi2pYp86P5jQJ Q34AoKL08ZM/9tjJFzZAXpHW0GjTfrB5 =URtF -----END PGP SIGNATURE----- --mojUlQ0s9EVzWg2t--