Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1069743yba; Sat, 6 Apr 2019 02:54:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKWOTk1M0bQyUKvaY19Sv/EGuvuB3N7jbC/KYT/QIyNfXOZ/dCcKjXcZIYRQKzOkx5D1d/ X-Received: by 2002:a63:114d:: with SMTP id 13mr17185328pgr.216.1554544474958; Sat, 06 Apr 2019 02:54:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554544474; cv=none; d=google.com; s=arc-20160816; b=e+v/ky3aJGGjQqb1dtyE/iReeeSeC04yvHYaGG70HFBghdotkCdR5bJ/eRiPyz7Hj/ kTPZMEh8sxLZDPGrXJV6noZqPwfwdOee75C0W+aqpmllN5eBPiF2EpqDyG/Kq7OfMykv G9RZda5E+ztV+RMcs9aY8VQMXYNPQHfy+Vo4tQiiwM9ThiO9R9NPxW32aAYcZxyVTykn 8HFAmnaCvYnjgpvfDGgWKvVkW/C6dgFLHcNc5YdHoXyKzhbIv8VRL2gqqXsAnJ/5tqmU Zgv2pdM2aNgg+Bdn7l5wQdmbXAAHaGLPCWAZrRNDrY7hJhPaYW2r7Yfmu0Eix7gVJbqT V8kA== 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=UY/q3Bz8p1ndHcG2mAduntUfh2sjCJHUYlWaggpsRYI=; b=Mo05GCPiucoQxZrHgW8+SPafc1Qq63H70QzmtukfBRrpa/oMpZE3tWOiF88djjLvBx Tb0hNFmZipTC4Gry7/W3b0MLBhZNJt3uKaVF2vbu5TN9qxheJFprPRMAxt6+TJN/PAvK RTtt109ueYce2ShraMfOF058SzWbyn5Jg/9LrmtLnOgayDnutImUZOGs+szbjBt8XeFC L7HfzKcXFTBKN4mPbrd2y2xU26SSv9JA4/oCXE+dOAnzdIlOX/Gg4GvxIW/pgQXtssS5 hbGx7fC1Kh4A0oklkF9GavQQhEGtl7DfmbHxTARl/RVd9VTwODMO1olKkR4mbMjxQ/JX KBTg== 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 c144si22684808pfc.5.2019.04.06.02.54.19; Sat, 06 Apr 2019 02:54:34 -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 S1726419AbfDFJxp (ORCPT + 99 others); Sat, 6 Apr 2019 05:53:45 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:49758 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726036AbfDFJxp (ORCPT ); Sat, 6 Apr 2019 05:53:45 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id C5B1C805F7; Sat, 6 Apr 2019 11:53:34 +0200 (CEST) Date: Sat, 6 Apr 2019 11:53:46 +0200 From: Pavel Machek To: Jacek Anaszewski Cc: Enric Balletbo i Serra , Guenter Roeck , Dmitry Torokhov , Nick Crews , Benson Leung , linux-leds@vger.kernel.org, Alexandre Belloni , Alessandro Zummo , linux-rtc@vger.kernel.org, linux-kernel , Duncan Laurie , Simon Glass Subject: Re: [PATCH v5 3/3] platform/chrome: Standardize Chrome OS keyboard backlight name Message-ID: <20190406095346.GB7546@amd> References: <20190404200658.GD29984@amd> <20190404202042.GF29984@amd> <20190404204207.GH29984@amd> <20190404220509.GA14690@amd> <469dfb68-a7ab-668d-15cb-9e021c0d3f0c@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hHWLQfXTYDoKhP50" Content-Disposition: inline In-Reply-To: <469dfb68-a7ab-668d-15cb-9e021c0d3f0c@gmail.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 --hHWLQfXTYDoKhP50 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > The patch set introduces also a set of predefined LED_FUNCTION > names to be used in DT bindings. This along with the removal > of devicename section from LED naming pattern will help to keep > LED sysfs interface more uniform and not varying depending on > underlaying hardware driving the LEDs. >=20 > Regarding the problem discussed in this thread - I would not necessarily > go for "platform" in place of devicename LED name section in the > cros_kbd_led_backlight driver. If we change it (should we at all - it is > already in 5.0 AFAICS?), then I would opt for dropping the "chromeos:" > part. It believe it will be possible to retrieve this name with > get_led_device_info.sh script. It would be good exercise to check > it out. I am not sure about existing driver. Important thing for me is that new drivers use consistent naming. > In cases like above: >=20 > keyboardist::kbd_backlight > tclnumpad::kbd_backlight >=20 > we could do with the following: >=20 > :kbd-backlight > :numpad-backlight >=20 > I used hyphens instead of underscores since we will have this convention > in the LED_FUNCTION names, which is more common for Device Tree, and > some of existing LED triggers. Existing userspace already searches for *:kbd_backlight", AFAICT, so we probably want to keep the "_". I don't care much if we use "platform:" or no prefix at all for backlight of internal keyboard, as long as it is consistent across all devices. We certainly want to use some prefix (probably inputX:) for backlight on USB keyboards. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --hHWLQfXTYDoKhP50 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlyodyoACgkQMOfwapXb+vL5oQCcCFra/9cmt+6pqBH7En0ogzC/ 8gcAoLamY/jmw88Z2vDKZI9Jtyw0MeaG =7wli -----END PGP SIGNATURE----- --hHWLQfXTYDoKhP50--