Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1435576rdb; Sun, 8 Oct 2023 07:40:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHWgl9c2HueK1oMSj0wN4Y5nxKvv56HFsMRrS9AmzEuk/E32Fb/Fac6i7HzrVDAzvEmG4o0 X-Received: by 2002:a05:6a00:f8e:b0:68f:b5a3:5ec6 with SMTP id ct14-20020a056a000f8e00b0068fb5a35ec6mr13652350pfb.0.1696776047953; Sun, 08 Oct 2023 07:40:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696776047; cv=none; d=google.com; s=arc-20160816; b=xXYYPq7pcM1nYoRRo2NkA0TgtcbQR7V3/eqZzUphJI7PvWco0evNJ9tLcMgjN811jq HUv9ZQrK9s62Y6Hf2ORli4QeYtNotzn67iEp/x6cAwaq6MfFeYJblp/v9Oiog6INDpwE 8yXtQLqJgEKWm7SULC1wenuWmfDaRFv2Bbadvgi8O1BbMcBjIuuqpNxhsjaACpM94VTd +POABSoDqtsv4TeqJLGLoRSLVqBBRFJ2lKVU2nKhAgq99W56xi43MGEmtRisH1WxMQJb pay/BOyqd/zk8/YN6QVX5X/Wk8cltH38zIco+exBlLUIgbsksUdYfN9OlgNKewhVn3/2 XeeQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=QMbqPne1P7qx2nIFcMFC5NDY6mv9gzceopL7UMaJmQE=; fh=r0z5Hce+lxgg7/8S2Q2P7AE15+VfKEWSRRSVMBiiImQ=; b=Hrl60uPoRdUF1ExK30h2H/jb8Ijav4h1EQ426JKVHEhgSvYJYX0ain3oIoafNGd7pM 2bIBXfpZqwUvi9NjfU4N0OCotC28yoYD92buxZ7TCqzpo4evbXHqBK6DJgRGb6SmO3FV jQYXwynT5Z9tIkaDGDwCrkvDUVpxzFv8RoUypyZ+6VWM7Iyh9TierIlVCJcZwrzgVLTM oRkxG5mxV/NLb8Jq3UXnWk+p0FHLonvZXKIdME0P9OF6cGQbrn1T7UmNmgKreYc68kKv Z5ViLiruIYGUoZcuxLpAnv4EH5NlxZAinrBBDCzFVifaw4nDPQucQ3MlTqxTBOkrfC5y vQRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=gohi54Xu; 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=xff.cz Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id z26-20020a056a001d9a00b0069342cee02esi5419415pfw.298.2023.10.08.07.40.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 07:40:47 -0700 (PDT) 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=@xff.cz header.s=mail header.b=gohi54Xu; 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=xff.cz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id AAF148055ADD; Sun, 8 Oct 2023 07:40:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234339AbjJHOkZ (ORCPT + 99 others); Sun, 8 Oct 2023 10:40:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230303AbjJHOkY (ORCPT ); Sun, 8 Oct 2023 10:40:24 -0400 Received: from vps.xff.cz (vps.xff.cz [195.181.215.36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26B78A4; Sun, 8 Oct 2023 07:40:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xff.cz; s=mail; t=1696776021; bh=eDXsog+J/XXuZesNNvrWlqpieI4EjnnGtBWWP9Ztf7s=; h=From:To:Cc:Subject:Date:From; b=gohi54XucwRpKeYO/PTNe1LudzL6ZIrrtxuR+cBgMWyegCsfnroYNw2zNXc51k7AA bzx5M1FHvN0ZEEgNMhzDWfze2RIvTeIgED6EvgLTj6kYM5LUmDw79MrYpcO9Iv2tZ2 8VY0w5JIkWG5Y4SisPJSeQXdpbz+WaqMGXS00Pco= From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= To: linux-kernel@vger.kernel.org Cc: Ondrej Jirman , Pavel Machek , Lee Jones , linux-leds@vger.kernel.org (open list:LED SUBSYSTEM) Subject: [PATCH] leds: core: Add more colors from DT bindings to led_colors Date: Sun, 8 Oct 2023 16:40:13 +0200 Message-ID: <20231008144014.1180334-1-megi@xff.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no 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]); Sun, 08 Oct 2023 07:40:45 -0700 (PDT) X-Spam-Level: ** From: Ondrej Jirman The colors are already part of DT bindings. Make sure the kernel is able to convert them to strings. Signed-off-by: Ondrej Jirman --- drivers/leds/led-core.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/leds/led-core.c b/drivers/leds/led-core.c index 214ed81eb0e9..2230239283d0 100644 --- a/drivers/leds/led-core.c +++ b/drivers/leds/led-core.c @@ -36,6 +36,11 @@ const char * const led_colors[LED_COLOR_ID_MAX] = { [LED_COLOR_ID_IR] = "ir", [LED_COLOR_ID_MULTI] = "multicolor", [LED_COLOR_ID_RGB] = "rgb", + [LED_COLOR_ID_PURPLE] = "purple", + [LED_COLOR_ID_ORANGE] = "orange", + [LED_COLOR_ID_PINK] = "pink", + [LED_COLOR_ID_CYAN] = "cyan", + [LED_COLOR_ID_LIME] = "lime", }; EXPORT_SYMBOL_GPL(led_colors); -- 2.42.0