Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3187440rdh; Mon, 27 Nov 2023 08:11:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IG20Fd8wzgpqUVIhDc7yF6SmEwS9iVt/YR6YILMZ7BrrWwreo20sRwebyG+4Jg54WuMOAB8 X-Received: by 2002:a17:90b:4a09:b0:280:8356:10b2 with SMTP id kk9-20020a17090b4a0900b00280835610b2mr11160120pjb.5.1701101509904; Mon, 27 Nov 2023 08:11:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701101509; cv=none; d=google.com; s=arc-20160816; b=zk1ZsJWK0b+SohyvztXu54szZfZeWgOYk6hD0JmCASxGyrvgPFy5OCCDc48dKbr+6f wrSSmkWGFEDCKRFxBzF9U9TgQ8Rslx7KJuh+lwIQhuAL5znRp9N9RcmwmUpmdQ2e8xy6 zV5eKuMLdnmJ7C2uQMtCNh/raCcRchXlCbBMhJdbyyxPswGpFORVLjTkxIy0kXs7NG3R rEh+7PkV0RD4GNi8nTVQNvp0M4yZAurILEg0+kfqKwflaqLHDaRVRs1ocy9etEsN8DX7 m3SCwq5zGX4qFEX1GaHeXYnNXBf4LMOEPcNa+T5hYNV+mtuaXpyTA6R5Ao4LvfgzlZah Q0Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NKB6MyilaMyGseIWrN4/zNiHG1v45+w9MFy4Mkrejjo=; fh=vt/0XdzL2GkN65JYumea18SdQGQtsz9G9GRnf2+sJWk=; b=swYtOEhVhXcVHF76g/koW0pFDIXD32IkL3q5HFwy9r65JunCurwPbaW1RF3XRwbYxL qUAQ5DivOGzbnXZpFvRi4xicR9MLngTz9LOGhTdxKFtpEiLTNJ0t8sYYRdKven86EPLE ma2JoFC7zVYTeMt3Q8wohdfRajlMe+XlIsDYVsQZXfw39OkTOT4NJH2Y9LFBs74M+fvP +KKkNr41TWY3HzZyVtnH5AqwjfQLqPzLtjjN7QaE7i8+rkS88X5J9QWIeGbFsdlxW47y RYPAqS9KEkATmP0pIIwXvASrFQ4yONCHjuoql1eLPOOmJlIPMXC8R4Ps08YrWr8xr3Ms mODg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="W4stbp0/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id x93-20020a17090a6c6600b002851a3a3759si9823090pjj.107.2023.11.27.08.11.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:11:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="W4stbp0/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 416508228999; Mon, 27 Nov 2023 08:11:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234333AbjK0QLc (ORCPT + 99 others); Mon, 27 Nov 2023 11:11:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234322AbjK0QLb (ORCPT ); Mon, 27 Nov 2023 11:11:31 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3314FBF for ; Mon, 27 Nov 2023 08:11:38 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD929C433C7; Mon, 27 Nov 2023 16:11:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701101497; bh=1eC3B85c/WTIXCxPORwzEkxtZ2OPGRmGdBSkCRXeP/M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W4stbp0/23OAp1nKC52N6XJrhGA+YUTis67TYG+h5O946UkapWE4UYfWhZ1z/bD+0 f6w864ZJ3xYwpf/2TvBd6tLimWISRUHD5EK3pX1CjO5aF3MXUf//qeMVkhQex5VxhN X/oai6B7w5sh7x4peTRRYwxbH6o+3uWWn+qmLyZuvBeQlv49FiCl5CSmzUCRMjejtQ eTma3mvnaMfaoGYrTsWMITtrK1q2gkCv3HnegRO9q6nek+J6AhTTUKcNg4ef1Gx8g+ eeCXrLR3qK1DbGWYk35/Loa6zPZulwdb8WJFURUsVjd2b/Y0gT8DaV8RfwRKo1fyGj Uo0VJPx3l3e2A== Date: Mon, 27 Nov 2023 23:59:13 +0800 From: Jisheng Zhang To: Lee Jones Cc: Pavel Machek , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] leds: Expand led_colors[] array Message-ID: References: <20231030054757.3476-1-jszhang@kernel.org> <20231123105620.GG1184245@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231123105620.GG1184245@google.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 27 Nov 2023 08:11:47 -0800 (PST) On Thu, Nov 23, 2023 at 10:56:20AM +0000, Lee Jones wrote: > On Mon, 30 Oct 2023, Jisheng Zhang wrote: > > > commit 472d7b9e8141 ("dt-bindings: leds: Expand LED_COLOR_ID > > definitions") expands LED_COLOR_ID definitions for dt-binding. However, > > it doesn't expand the led_colors[] array in leds core, so if any of > > the newly expaned LED_COLOR_ID definitions is used, the sysfs will > > emit null in the led's name color part. Let's expand the led_colors[] > > array too. > > > > Before the commit: > > /sys/class/leds # ls > > (null):indicator-0 > > > > After the commit: > > /sys/class/leds # ls > > orange:indicator-0 > > > > Signed-off-by: Jisheng Zhang > > --- > > drivers/leds/led-core.c | 5 +++++ > > 1 file changed, 5 insertions(+) > > This already exists as: > > a067943129b4e leds: core: Add more colors from DT bindings to led_colors well, my patch was sent earlier than this one... When I sent out the patch there's neither fix in mailist nor in your repo.