Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3322969ybt; Sat, 4 Jul 2020 13:08:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmKh/ghuVRq2F0LBEFKToWbzi3pKqeVSItPYitcs7IG2te73Nv//3YAUVYBSRTZSWOYDUv X-Received: by 2002:a05:6402:377:: with SMTP id s23mr48293096edw.200.1593893283124; Sat, 04 Jul 2020 13:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593893283; cv=none; d=google.com; s=arc-20160816; b=BGtKw1JWaBcH7owb4V4tm/f5NlfYdXW1HljIdxhLE27322iiMEWaz4BTmoqUKVnRJV IV11DMBq1qdyaFJiYvCwjGd2h9Y4MdYPI49m06jrA0iitg7JyYPvfDR5XpyFOisgyVDQ 853P5ESK2D8WI1Zdtw67Lv1gTSI2mXIXvS1uCYPZCNUDjBqla0a/znOinhfRucOZ7Bic WV3OEWs1Rpq1CEucgZ8h+s7IIGDpNPDWNC7OGWSnopntzHcm+ZU+3HaCmbu2Xdz7YxQd j+ctxYUHyrow4w7EZgleZH5Vd+gIlrTO4ztqQZl51o/AHcUF9mwSjQnvMDfBJ3hjS2fF Pxew== 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:to :from:date; bh=/8NzzBCfKlukC69D1Ybo0LJMqSs+6Ce4+5O/MmsZs7k=; b=SA/tHAJirhvjqDIKpjcmYfoMOYjFZGwjwxnBdhx2QBG2HuynO7WWeQc0W8oxIKDFad bXFkEVmmA8LmnGxAVsIsJL4KW3CISPfyHGcwk6SoXmA+F9WOoSZM3vzcSYUi4WikRqYf 8uvIvWeLcVn+YIMYFF+zwUeP9RgChHRYk9skAO78pCNo6aBSzLOs+qp+ke6tVpCVJKbG YW6Pp10HrSXHa+Xo7VmTvodvUN4EKP6sgvWLTsVo9Qf0E+JjaaEQMvOIF+K/p0wkKKHa 5vQKxbhoyFGK42wz0vSbGY6qxv2kPgNMFCF16yg4/x4vu2YKapGI46bznjwBzE5D6DJE IQBw== 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 h14si10004722edl.132.2020.07.04.13.07.27; Sat, 04 Jul 2020 13:08:03 -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 S1726926AbgGDUHY (ORCPT + 99 others); Sat, 4 Jul 2020 16:07:24 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:49756 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726643AbgGDUHY (ORCPT ); Sat, 4 Jul 2020 16:07:24 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 4D0C11C0BD2; Sat, 4 Jul 2020 22:07:21 +0200 (CEST) Date: Sat, 4 Jul 2020 22:07:20 +0200 From: Pavel Machek To: =?utf-8?Q?Ond=C5=99ej?= Jirman , linux-kernel@vger.kernel.org, Jacek Anaszewski , Dan Murphy , "open list:LED SUBSYSTEM" Subject: Re: [PATCH RFC] leds: Add support for per-LED device triggers Message-ID: <20200704200720.GA24405@amd> References: <20200702144712.1994685-1-megous@megous.com> <20200704120459.GE16083@amd> <20200704121737.xiwcqzsfuzy3k3qf@core.my.home> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline In-Reply-To: <20200704121737.xiwcqzsfuzy3k3qf@core.my.home> 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 --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > Add support for registering per-LED device trigger. > > >=20 > > > Names of private triggers need to be globally unique, but may clash > > > with other private triggers. This is enforced during trigger > >=20 > > Globally unique name is going to be a problem, no? If you have two > > keyboards with automatical backlight support... >=20 > Only globally unique in a sense that they must not clash with non > per-LED trigger names. So you can have two keyboards with 'self-working' > trigger on their LED devices in sysfs. >=20 > This requirement only comes from the fact that this shares the > same sysfs configuration interface as regular non-private triggers. Ok. That looks sane. And if you tweak code a bit (don't compare pointers to struct led; have struct hw_trigger_group, and compare pointers to that), you should be able to fix the uglyness Marek mentioned without major changes. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl8A4XgACgkQMOfwapXb+vLbsgCgvokoJmSQ7pb80ed7OiSTkrex pGUAoK0jV5UJHvqnGrfAtKVpolFF98nO =SesQ -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz--