Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1801151pxk; Sat, 19 Sep 2020 02:48:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxq1so5Z51d/ePSO4ECCU0EONhR8o1d3Wyq9w45MhQDv8BWQ7ee5WgE7GKAYG6cbyEvUZNP X-Received: by 2002:a17:906:af92:: with SMTP id mj18mr39748471ejb.242.1600508882379; Sat, 19 Sep 2020 02:48:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600508882; cv=none; d=google.com; s=arc-20160816; b=NBZI7pup2hYXvr6bRBTYQFyp6UEgVnGXOlEFW1IfV/VXIVr+88oDn2wdwUHe39d8yO ZmgjD4Xfs9eQOIr77bcb+9bDcuv1rv6yASwGTy1LRDk5TmoWZ3cb+fq29N78JObLMzVF rRfNZEqrM8HM7/rZ3qLU+SYJZADvpx4y6uv/yvvXHMxVEGCXg5cYo3XFqDocLsVf4Mgj v2bQEr6ZKZKLrlHlo0SeuXMVJeTOQ9KDvBoeRPFVsPZXiCRZnhBp/Ec/kXPDtxx4Y/mW kcOGiWV21dntw0sm3zpGWwLoW1pKdo0Hf1OgZXhdo7fCc4v4zC3+IP53FPUGGhAF1yDN Ud6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=mPB4c9XYxK0KqdamMTiQe6DaccbTilUjsxdKH0eunIg=; b=fqSZqBFXKgdJ2g4q7BAOPFixuhnJbcMocdq0I7h2AxxoR+gwiAaZo6BYEG9MChMPm5 B7aEcPtvGeDvgM6o9C+EHrRZHBM+aMpqndaiGp4QE4d+Q3p/+LurcHfyATmQJyWGG3Ir FgGgVf9Q+Dv2I5uDulPfaqAyJWuiO4vXv5xdP5Mm8hLSUoSgKb6t25oZSvU8kkIWK4eX 3gK5u0pfc46pdJXBzOWo6WILrlcTTYGNi9k1Nqr7nyNdQBav6Yq8bsl/hBvx5gB/7P/9 so/eB7+LyY8Y1yGNqz77rBIsNEKSZDz0WoHIJnLHZ+72iHqAmCIr2Ylmvha8iu8mGMj8 SOmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qp7si4049321ejb.550.2020.09.19.02.47.39; Sat, 19 Sep 2020 02:48:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726269AbgISJoe (ORCPT + 99 others); Sat, 19 Sep 2020 05:44:34 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:43342 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbgISJoe (ORCPT ); Sat, 19 Sep 2020 05:44:34 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id A54C41C0B85; Sat, 19 Sep 2020 11:44:31 +0200 (CEST) Date: Sat, 19 Sep 2020 11:44:31 +0200 From: Pavel Machek To: Alexander Dahl Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, Jacek Anaszewski , Dan Murphy , Rob Herring , linux-kernel@vger.kernel.org, Peter Ujfalusi , Marek =?iso-8859-1?Q?Beh=FAn?= , Alexander Dahl Subject: Re: [PATCH v5 2/3] leds: pwm: Allow automatic labels for DT based devices Message-ID: <20200919094431.GD12294@duo.ucw.cz> References: <20200919053145.7564-1-post@lespocky.de> <20200919053145.7564-3-post@lespocky.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qGV0fN9tzfkG3CxV" Content-Disposition: inline In-Reply-To: <20200919053145.7564-3-post@lespocky.de> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --qGV0fN9tzfkG3CxV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat 2020-09-19 07:31:44, Alexander Dahl wrote: > If LEDs are configured through device tree and the property 'label' is > omitted, the label is supposed to be generated from the properties > 'function' and 'color' if present. While this works fine for e.g. the > 'leds-gpio' driver, it did not for 'leds-pwm'. >=20 > The reason is, you get this label naming magic only if you add a LED > device through 'devm_led_classdev_register_ext()' and pass a pointer to > the current device tree node. >=20 > For the following node from dts the LED appeared as 'led-5' in sysfs > before and as 'red:debug' after this change. Thanks, applied. Pavel =09 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --qGV0fN9tzfkG3CxV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCX2XS/wAKCRAw5/Bqldv6 8ob7AJ9r8q2IyOv76Bdhrp1yp2IBmXH+qQCfe4DTLqYtC1J0A0xjwpUn4gu3Lyw= =0r// -----END PGP SIGNATURE----- --qGV0fN9tzfkG3CxV--