Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4580561imu; Mon, 12 Nov 2018 13:25:09 -0800 (PST) X-Google-Smtp-Source: AJdET5do82iyh5N7Ttv/B14dY3RyUHEjoNaaVuaMCbQxXjv+HoxNsmbMP5TaMTbBZzy1ofCEDg2A X-Received: by 2002:a17:902:2f84:: with SMTP id t4-v6mr2392023plb.239.1542057909647; Mon, 12 Nov 2018 13:25:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542057909; cv=none; d=google.com; s=arc-20160816; b=qVSeLA2r7J2gqxjhlIAWjffQUE5FxAKjEY87xphLFpddx9I1wqZJtqzBvW+50U9JfT CWniOwIXTOAjSmdQXopF0RNHSuGtjplOpPV6QyqqWFmESu2R1XFxt2SFz7ni9gD0LGaR FhZq6EnfQFjrb2GXxS1giwQK8qQwiBUX1Gt4O2MvFoEAPXVhvF0t5V3txQc7H9nxDdIo 86y1kbu5MrYyNcCYLNIeSCrWfQeTxf9Py16flF7XhfhpSH8xXV/xOwIG9x2+aHfbMzoi AOyUUwtZtxR060lWi9nRLtizey2TyTUNKB4d6q9RXJKStVAKG2T1f+Ov7uqDQxi8F/Mz EaGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YfcUWhbiXopGK/9rSaCgm4MLbRANrtwlieTA5iQh0Xw=; b=fTa3M2GCeLrCF6sh/mNdXHCbLLN1WTHeMMGGDKUtIrTdRcxO4/DMxlLaqFbnxVV3Ai v+m8govPR7pNy5mEH/XyL9buB2ntt7AOeQ2gwr+StcDkg4O1A3ZMrAracU8jXAzhb+1m QVx7WUXGwx9UpG3gWAO1c9G9nolvcIIFqdVEHOSYqjK17i9+6T1kuGBj1sAloeHQnZPv ExETUk48LC/PiqPe1ALX2D501xdQQMswNx5PXPQkYhkk4sA08DWeb7Y7MTQmKoTmWh6Z EzMyYFQi56bWlh9IHeZ83FY86420ub7MWo/3QGBWVJ6oowHcOcjavA0N+b3qEtSxf2Rt Yq/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jvjEgUZy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b12-v6si18259413pfi.99.2018.11.12.13.24.53; Mon, 12 Nov 2018 13:25:09 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=jvjEgUZy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730548AbeKMHS2 (ORCPT + 99 others); Tue, 13 Nov 2018 02:18:28 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:37219 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730518AbeKMHS1 (ORCPT ); Tue, 13 Nov 2018 02:18:27 -0500 Received: by mail-lj1-f196.google.com with SMTP id e5-v6so8929011lja.4 for ; Mon, 12 Nov 2018 13:23:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YfcUWhbiXopGK/9rSaCgm4MLbRANrtwlieTA5iQh0Xw=; b=jvjEgUZyj/OHJWH8wSW8u1Ldy+J6zHQhz9WSkXAp3sL/7eCPsDtes79B5Qtjj4etSL RueMXLSfXgaBNnIta6XpSAxz7dIdSkLh3txFj4+1yNPQRwuNTvbEff8h/HLi1RIuXLU+ JoTl5WeTAi//eFGu7OmnB3pvyXZkwAOWK9Ogs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YfcUWhbiXopGK/9rSaCgm4MLbRANrtwlieTA5iQh0Xw=; b=K6YL9Ln0C9/tJV63o5Emj3YqQHbMtQVZ2fzTzcsxRW0Fj76m6D8BS06ieWQnKgVPig 0EusjcDn6jjBRJtGeOK84FIsyMzPSNBchXaM6DUV3FkAlZKwk0P2Cmf0c2W23zpAgUAc 5aZ1AVCuKsZGMUbeo28LJhKAKn1tVC7FQJDyxP8k7f4opz2bDbNlojJgIgamAj7cVLBt RVyef8kBbjDrAbhjBHV2tqS0GWeIgXLIfu0cBkflW8vdq6PBdOh2MkupkFcdmHAtOysA j528D8TwBX3+1Udu55+Yh+F9Z+skgiadis8pnFTFwGN6NH7DIKT77ziISdWBKEuHDZ3h H2wQ== X-Gm-Message-State: AGRZ1gI31eL7JhoRhnnVTWZdwRsuCvwhLdxoKMdw7DP6KelMyEA8/nSH XADCC14ppYh7/dbN8kPne9i4Qv0QQ6zg/Hotx55I/w== X-Received: by 2002:a2e:7403:: with SMTP id p3-v6mr1668249ljc.97.1542057806069; Mon, 12 Nov 2018 13:23:26 -0800 (PST) MIME-Version: 1.0 References: <1541542052-10081-1-git-send-email-jacek.anaszewski@gmail.com> <1541542052-10081-3-git-send-email-jacek.anaszewski@gmail.com> <20181111120234.GA28794@amd> In-Reply-To: <20181111120234.GA28794@amd> From: Linus Walleij Date: Mon, 12 Nov 2018 22:23:13 +0100 Message-ID: Subject: Re: [PATCH 02/24] leds: core: Add support for composing LED class device names To: Pavel Machek Cc: Jacek Anaszewski , linux-leds@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , Rob Herring , Baolin Wang , Daniel Mack , dmurphy@ti.com, oleg@kaa.org.ua, Sakari Ailus , simon@lineageos.org, xiaotong.lu@spreadtrum.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 11, 2018 at 1:03 PM Pavel Machek wrote: > > -"devicename:colour:function" > > +"colour:function" > > I don't think we want to do it in all cases. > > So, on my cellphone seeing lp5523:green:led is indeed not useful. > > But on notebook with usb keyboard attached, you need to keep the > devicename to be able to distinguish capslock on internal keyboard and > capslock on first USB keyboard and capslock on second USB keyboard. I agree with Pavel. I ran into this when connecting two identical keyboards to the same machine. The driver worked fine up until it tries to create two sysfs entries with the same name for capslock. BOOM! In this case I suggest "serialnumber:color:capslock" and similar. The important point is the string must be unique for each plugged device. Yours, Linus Walleij