Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3714161ybb; Mon, 6 Apr 2020 14:13:57 -0700 (PDT) X-Google-Smtp-Source: APiQypI/aD21Z8wrxEAzTr0/kHS2Zpl8VLnScIJMd6VnXxHdyFeFMEj+aXcB4rTbQCy1bG+c99sR X-Received: by 2002:aca:61d4:: with SMTP id v203mr1175254oib.72.1586207637269; Mon, 06 Apr 2020 14:13:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586207637; cv=none; d=google.com; s=arc-20160816; b=YWb3UJOsq5rBOKfqXkjBFV3yxAgmWEmr4/tZvZP7iGyEEUi3be85QgO+gjHyQV61jy sHIInW920HSzEcv2CBX9YsveLIcAXjqnTboiyCvdy83avYlx2MK4w3ShuvDIQ2hFWYY1 93S3PelwdueiVcduERaEGG/OcazBtB4LtQo9oaB1dn8Fp09/uMUMOhsvUnMXyssMrwyb W3g9uY62E7NQtXtc+Nw2U11Zsd0KONcVNpdeaW2bbAidBo7/l4bNYSCesmHA0T5m4GEE Hl69J+Ts09XmX3J+h/uqxTmAFzSZ2P0uwPOxqZZqqiFvZCQ/1FySSWX6q2Z0GbtVVmo5 t6sw== 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=MqMSkvDfgdjCxVo9u/GS6OXD3M86FzaxVmDW0X0C5Uw=; b=I7xq7/JsjnjZ1ZyRyqfSZm/tGYRVrfiEeSBiU4/PbuP39Inqr4fkW0Hb5ixY3ZDup+ fqhWj0g/UX9Ki45/OpBeqYNRKFQS392WjVBvpwANModLtMQ87h9nEfmqBrfTrIaRJYkA o2DX4ljBRNQNDbc2Zg1n3SC2SS8eApqtBxOdubyOQdZOXcDWvKq+XZnKkT1fyuPQDTcX 4msKwem5r0pMtAB+VE/y7S/B5kMA1eMrX8hU0xGyKJ4oK9cPErAfT+98mDPqYitu0pKn cOlD48Fv5EOwIsqDTGjekfWlI1Nk5mIPMeBbKZv27Xjov4LAdSqnsWkGvIqgqJTuyRKA /Ukg== 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 h19si341296otq.86.2020.04.06.14.13.44; Mon, 06 Apr 2020 14:13:57 -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 S1726230AbgDFVNK (ORCPT + 99 others); Mon, 6 Apr 2020 17:13:10 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:45032 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725895AbgDFVNK (ORCPT ); Mon, 6 Apr 2020 17:13:10 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 403B91C47F0; Mon, 6 Apr 2020 23:13:08 +0200 (CEST) Date: Mon, 6 Apr 2020 23:13:07 +0200 From: Pavel Machek To: Jacek Anaszewski Cc: Ricardo Ribalda Delgado , Dan Murphy , Linus Walleij , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] leds: core: Fix warning message when init_data Message-ID: <20200406211307.GD12611@amd.ucw.cz> References: <20200401095147.444353-1-ribalda@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="P+33d92oIH25kiaB" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --P+33d92oIH25kiaB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed 2020-04-01 21:49:00, Jacek Anaszewski wrote: > Hi Ricardo, >=20 > Thank you for the patch. >=20 > On 4/1/20 11:51 AM, Ricardo Ribalda Delgado wrote: > > The warning message when a led is renamed due to name collition can fail > > to show proper original name if init_data is used. Eg: > >=20 > > [ 9.073996] leds-gpio a0040000.leds_0: Led (null) renamed to red_led= _1 due to name collision > >=20 > > Fixes: bb4e9af0348d ("leds: core: Add support for composing LED class d= evice names") > > Signed-off-by: Ricardo Ribalda Delgado > > --- > > drivers/leds/led-class.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c > > index 1fc40e8af75e..3363a6551a70 100644 > > --- a/drivers/leds/led-class.c > > +++ b/drivers/leds/led-class.c > > @@ -376,7 +376,7 @@ int led_classdev_register_ext(struct device *parent, > > =20 > > if (ret) > > dev_warn(parent, "Led %s renamed to %s due to name collision", > > - led_cdev->name, dev_name(led_cdev->dev)); > > + proposed_name, dev_name(led_cdev->dev)); > > =20 > > if (led_cdev->flags & LED_BRIGHT_HW_CHANGED) { > > ret =3D led_add_brightness_hw_changed(led_cdev); > >=20 >=20 > Acked-by: Jacek Anaszewski Thanks, applied. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --P+33d92oIH25kiaB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCXoubYwAKCRAw5/Bqldv6 8v9UAJwKQZAnZW36XiePXAyyOrCUgSLxCgCgnW6AbwGI7UI3O8EXyEB+c3tRsOA= =61Fb -----END PGP SIGNATURE----- --P+33d92oIH25kiaB--