Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp245194rdh; Thu, 23 Nov 2023 02:56:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IEEP5tbqkQZffgnKPzHjblb6ZVEy/D4yfbyt5UTmWwVTmuoMQKaJDsQpHUh0Krzt86ULbwG X-Received: by 2002:a05:6870:1b14:b0:1f9:9003:4164 with SMTP id hl20-20020a0568701b1400b001f990034164mr5616005oab.35.1700736998714; Thu, 23 Nov 2023 02:56:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700736998; cv=none; d=google.com; s=arc-20160816; b=O4udAmHw4gZ4dyc/JYu1kzUSVYsTEaqNU8zol7nIYoz2GPNJ0ZH8a/QPzLUrWP/4nm aPdkVGEaXfAJAq1clk6+p9iwY0Ctm6IgQgwbedLeSSuFVNcpwAqNCbPzcfKpP8Osl32J yNnJrDWn3P2p0EnWEYU3+Ct7AJ6c+SjFZRG3ZAfji9JiO41Po5L9G14GwIG6VSU+tsa8 z9XVEgrLNwp23JJDnjnisMbUXr3Vwp38CkPQQHlAcmHe7f31FAVpcnJzs4//N+ngc4s3 uZ55Pxd+DAYHF666jCXeKnxCF+s37axXrL2RaTzBj4V1Bm6wZunf7s0ZuNc0z1fQhgkG +mnw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=STKwRaFoGENGZsIGjgovQi+97qKG6UFPiZnBkKv60so=; fh=/q5r2afS8Ofnssts1iMFf2WnJ6MZhlMEhsZnTPWjbxk=; b=qbrAaWMMnZyndqFx7W9K8G4jqFJ6rST6utbqODtohRX981/IZvdex0ATxq8wxqbTmw TnJ+hBqzqBFXZbQyiJrbT03iiD+3aAvOqf3/tchkZPgvn56hr9b1T154llwkOM13fRBX HkesxIXZ/KPc2J4/4gl58um+39b5HmHJjnxq2u9loZkbD32lGdn9U09q3nFnrEC3/5rb 7J/DUOSxCBaBnlvpfV5nU+A6HsX/viCGo0xJ4iu7mwJ/l8cHyUY3uFrSy55kE9CgzvuT LILPR5TmiQxumo670Xt5oFEfdNlrwVOM+o2jKgE7NFaG1ho03S9hVUjm88AqU39MRTIs 4JnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kdqybyTq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id j6-20020a056a00130600b006cb4c6074c8si1014706pfu.311.2023.11.23.02.56.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 02:56:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kdqybyTq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 64E898096B8A; Thu, 23 Nov 2023 02:56:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231366AbjKWK4U (ORCPT + 99 others); Thu, 23 Nov 2023 05:56:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbjKWK4S (ORCPT ); Thu, 23 Nov 2023 05:56:18 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5E6319D for ; Thu, 23 Nov 2023 02:56:24 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F109C433C7; Thu, 23 Nov 2023 10:56:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700736984; bh=gt9z2fXP8rR18XrcKMZMdsGzjLqvt8M1v9NHsKRxsQI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kdqybyTqD4Y4FUSQcMl/1rVo3cS1vANF+XUMlp6dCnJfWm4swPou6liKrJLJGuGTF 9OVNuoYabjtga9oPk8Cq2F+gKrZfqqspT3A6b57VIdgHbb4d08Vtwziw97SuKCyL+7 nKL3bMMzGirj1z287ajtWdQKQACthghTpoCdfZKUhH0iV26oXz71eQhLfnm3uMO3Hf 4kUWMXgbyO4F/RnL1BdYGv8uFXdQQpbZ7brh3Uxe8aXLIgX59W50HggzVfta0ED0VQ WRIn3UDWShg4wBMiphUFfizpCK8LMFi9YEjdfyO++z9IW0PYbI6NU55jfGZw7zaZ7d wKcdJYp8r+loA== Date: Thu, 23 Nov 2023 10:56:20 +0000 From: Lee Jones To: Jisheng Zhang Cc: Pavel Machek , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] leds: Expand led_colors[] array Message-ID: <20231123105620.GG1184245@google.com> References: <20231030054757.3476-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231030054757.3476-1-jszhang@kernel.org> X-Spam-Status: No, score=-1.3 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 fry.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 (fry.vger.email [0.0.0.0]); Thu, 23 Nov 2023 02:56:36 -0800 (PST) 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 -- Lee Jones [李琼斯]