Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1462762pxv; Fri, 25 Jun 2021 13:40:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBno8tPV3ZRIExUnJKswve3Njwp91tWz/waglSZhTX0Rtb1bVghvVzlqOs88mSTOTtRV86 X-Received: by 2002:a17:906:ce4f:: with SMTP id se15mr13216980ejb.232.1624653639680; Fri, 25 Jun 2021 13:40:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624653639; cv=none; d=google.com; s=arc-20160816; b=GK+aJBdGoSJS4p9mdFNcil/ShH8pS7JbbkagydrL+/W+mE8eg35eD5644tC1l3C49L wsiU6u5UEv8SbVdhujHaE6TBH7Ahlm+OyPiYgwXGS1n8Ch3JYxbcOY3nVbmb7AUGBrip a3VTTGaLi7XCpyGhRk20HgVza1B5lefVD/1Pd9U+MflW5vtyCGZ8KILbZUS58jJB7Sox lDr726CB7FUMdCtW6bFxogr+SG4HhMI1umsKc6FDTDHo0YuAtWJ2Uf+A32mz/wbHeS1f YizbA5T+FlW4p9bMVaWRKaOfrfo8c63s1QiFfMGZACFpAV/v/iKYbazcCu7VVpjmu9uL 3UEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ausWNZmqZN68MQkSb+a1dAjOTle2h2pjrsF0FbIYLAA=; b=TsgsLIfmF06uerNRK/w5bF4mX10REGhjr4B9N0Dop3O/0gPdAAQcZgIWMCcCAzxcwM YdT6bS57YiIg6s9E9zteFWQyzlk+A6nkQrFdG4jsw9pRywToDWauIAMPyqo94jDvi/lm G7hCziG8czJqkrSPcTTQENGwXm/UH+xz+Pvh/TXx5A6WI6c4diRbEz4J+1vPF65q3TCV m7VsGHaVwHiCN6h8I0H8yY8g49w7HSlNkFxat3wLf6QS63u7gsdGT8h6xYnrOCZ3KuU8 n0cOxnNevqQqOKfDq7oY40F3iSqHk/3gUz5cTWB/fGU9SHFOkLN7cIoKGszYunnvAeum XPqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nic.cz header.s=default header.b=PY0v4FA6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nic.cz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w12si6955552edq.187.2021.06.25.13.40.15; Fri, 25 Jun 2021 13:40:39 -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; dkim=pass header.i=@nic.cz header.s=default header.b=PY0v4FA6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nic.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229871AbhFYUlj (ORCPT + 99 others); Fri, 25 Jun 2021 16:41:39 -0400 Received: from lists.nic.cz ([217.31.204.67]:49216 "EHLO mail.nic.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbhFYUlj (ORCPT ); Fri, 25 Jun 2021 16:41:39 -0400 Received: from thinkpad (unknown [172.20.6.87]) by mail.nic.cz (Postfix) with ESMTPSA id D251C140A51; Fri, 25 Jun 2021 22:39:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1624653557; bh=u6EMeSK1Qnlc29tD+E2egIEvb4ysZ1mRyK+uKuoRxgM=; h=Date:From:To; b=PY0v4FA6SF/ENMySW5FyqcEySryDtRT1HDaHe8RbkVoFR+l7QHRIyh31TQ0XClzsu 8QW2FStFeiJWtKarsepfUSun4pyoxxYRsSN/Tl/nGjBdzniUhampNA/1rAmeVxjN/t ZuiD/7pzr9DyQpllBPGrc1Zi4eMDNZrb+KLDD5FI= Date: Fri, 25 Jun 2021 22:39:16 +0200 From: Marek Behun To: Geert Uytterhoeven Cc: Robin van der Gracht , Rob Herring , Miguel Ojeda , Paul Burton , Greg Kroah-Hartman , Pavel Machek , devicetree@vger.kernel.org, linux-leds@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 18/18] auxdisplay: ht16k33: Add segment display LED support Message-ID: <20210625223916.7e00e710@thinkpad> In-Reply-To: <20210625125902.1162428-19-geert@linux-m68k.org> References: <20210625125902.1162428-1-geert@linux-m68k.org> <20210625125902.1162428-19-geert@linux-m68k.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-100.0 required=5.9 tests=SHORTCIRCUIT, USER_IN_WELCOMELIST,USER_IN_WHITELIST shortcircuit=ham autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.nic.cz X-Virus-Scanned: clamav-milter 0.102.2 at mail X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 25 Jun 2021 14:59:02 +0200 Geert Uytterhoeven wrote: > Instantiate a single LED for a segment display. This allows the user to > control display brightness and blinking through the LED class API and > triggers, and exposes the display color. > The LED will be named "auxdisplay::backlight". What if there are multiple "auxdisplay"s ? Doesn't this subsystem have IDs? So that you can use auxdisplayN for device name, for example? > + of_property_read_u32(node, "color", &color); > + seg->led.name = devm_kasprintf(dev, GFP_KERNEL, > + "auxdisplay:%s:" LED_FUNCTION_BACKLIGHT, > + color < LED_COLOR_ID_MAX ? led_colors[color] : ""); If you use devm_led_classdev_register_ext and pass struct led_init_data, LED core will generate name of the LED itself. Marek