Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp243490rdb; Tue, 31 Oct 2023 06:29:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHL3qOJGOuRj0VO/RHt21mlSZoQjgL9VbIbPKSv/1/uS2kGVCDVlA5vACGsBjlShwgp65/3 X-Received: by 2002:a17:90a:4f0e:b0:280:a002:be85 with SMTP id p14-20020a17090a4f0e00b00280a002be85mr1659011pjh.20.1698758986711; Tue, 31 Oct 2023 06:29:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698758986; cv=pass; d=google.com; s=arc-20160816; b=sq1vKOOpiD4s6S3rAxfSG3OnvFnBNQnSAljuzBjknqoWgvgHtMRcngq5UncXStaSIW mknARb05sCLWW+vjmMEpu7pwfCmpUYuEJAO/QpZXvwW9I0YCQC9vKqW4aUKMrIlJNhtA 2l1pZxfWzLm5ldgVe7MMUiRpugOQxGmnHBaJqmBhJPvTxiRWfHQdxBtAScgkkDZyfdQv IAvFn/a90awWdXcIGxhZz5QHkunnuBJYTgkTl/wSOxKf0zUH49SwTStEjv1McwZjU52W vZTiMIOUzkh8VQ8qEzGrFG2Xf1NjNDLLla5mnfejtRHy3MkxMFK8FpYznNI7HEuwuBTj gwDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=e1PU1ZKh8DhnqbSaxGa5wj8B6P7w9cqNoVxTMOmPymE=; fh=Yo56qVSCjqrQfc1F1exPNvLABiedIdae4arJS8QhxfQ=; b=F5ASQkqXzrrHGk6YyhbPS3qrMaedjdS/qVAe+m1UIkEiZmcO2cBHsJNmeubsmlJeKG O5bG3zyHAy/GHn5yDDLI6FCtT/eTmffaSy3NL6VmRYcXAqcJC8BJEw8JtA6tr2BQ37Oj oP5HbuXs3w6E5bOVf8Pqs2cKD/f40zxVDbsiVMsrUz+2SOeOtlTCuhaFl94bLOCtJ84L bz8gG2qW1xnikS79SewSjU86GzO9Csko104J3vD1Ca8Esu/AVmVDd7ouCErqaRBcKscX 0j7a6t9EOTQdU7tHOjLit/oJvcThr1sG7xEP0s4KBGMt+nMTBaQXVHXK/BOgR3si8wix 5rEA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=H5O58bZD; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id v3-20020a17090a960300b0027d01d450desi974389pjo.86.2023.10.31.06.29.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 06:29:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=H5O58bZD; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 388D3802F7C2; Tue, 31 Oct 2023 06:29:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344562AbjJaN3g (ORCPT + 99 others); Tue, 31 Oct 2023 09:29:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344544AbjJaN3f (ORCPT ); Tue, 31 Oct 2023 09:29:35 -0400 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01olkn2026.outbound.protection.outlook.com [40.92.98.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88A0BE6; Tue, 31 Oct 2023 06:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QxcfdwU6SQaSFbJSWCUzcPnwK2MI7glX3ZWUDm1oy78nbU4J7IWvUPIZ2lXybZK/P+fMXQ+WwTtyt1wjw/sFQThz8i8BlKdgsJFk2dfX8PY6ffT49RsbopO5uLxU6Ysgkzpi8PW9YaoOnHytjmkWO1z6N7S78LMvOhl8fUNeCHIxod26030vLajfcC61et8HyIPeFoqJkPFaeSKyxIzEDEiipEfUZ/Bj1Fu4yXSRrfvjk2mUT7M5Bpl7bQn5J8Cax1I1BbOyPCbQ2O2iu+qt7ZP4OMP2fbQIIn55rfCuA4RiZnu8yec9RNNIigEYhef0ZCSqi4oG16u9txCqmLcp0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=e1PU1ZKh8DhnqbSaxGa5wj8B6P7w9cqNoVxTMOmPymE=; b=VqJkQ67eyBJawINQITMmMv/bP14etf06eRZzCPrEzxRH3g8clv6/ohj+4PCtlKI+rKgz6HoSl4+g+3vLFutIrd0WAoVdYfvCAainrV+szgJPRD95KZfap9Ta8y1TvOZYXhiNgh/P3ipqpVoJ6DvjfQHP5wYcdfUDsNBG0RQ+EevYwKIn+QHt0JTsqUw4W0t102CUZ5b+rEWwOfdgUq/kDlcLvnIJbqu5TDv5Sp5IEkqBnbY2A6fHug70r210ZGv6fpIO3EZL6oUKWvGfvbpqdtZSST5u7wEoJ4V9k/hKeqD6AfWtN6EkAsG3Vpajx9owW6Usg+MEva5ZGDBOABJyNA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e1PU1ZKh8DhnqbSaxGa5wj8B6P7w9cqNoVxTMOmPymE=; b=H5O58bZDeuVUgZDLkhfQRz0EFtrlNksbsgOdQ7XG+LyFebRUEwSqjxBIsBX4KFnYQY4/2HBLkcqZJTgu/5gSIOFmqqVtMORYB4bYj2TiuQUDwGpOFuGJoKjdpUmijtrPybc1NqKXonOLFRmWGXYCxTeul3cVoDn0iwoPpcCTnFA9YJSUgUSFdm8+9WvbWnx87EojZYnth1tL/qzoVoXaDcthd4yVXk7yw4r37yoo7SjXg/oiiB2BN2RkwKFVwDQd+HbaAAPBqrjfZ6zvSu8vgdowPI+nUWSDjHIgsKssyHsQYNQWIIDh2mMXc5kFU7ntqDSvs27PD6xGhfw+nuGToA== Received: from TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8041::8) by TYYP286MB1668.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:fc::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.29; Tue, 31 Oct 2023 13:29:29 +0000 Received: from TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM ([fe80::465a:2534:4d99:a25b]) by TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM ([fe80::465a:2534:4d99:a25b%6]) with mapi id 15.20.6933.029; Tue, 31 Oct 2023 13:29:29 +0000 From: Shiji Yang To: devicetree@vger.kernel.org, linux-leds@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Olliver Schinagl , Shiji Yang Subject: [PATCH v2 1/2] leds: core: add missing LED color strings Date: Tue, 31 Oct 2023 21:29:00 +0800 Message-ID: X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231031132901.11732-1-yangshiji66@outlook.com> References: <20231031132901.11732-1-yangshiji66@outlook.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [r0tWq6fA5SwALZ2uoDgdG3uiLrgd4Ay0KrPhHCE/GsQ=] X-ClientProxiedBy: TYCPR01CA0068.jpnprd01.prod.outlook.com (2603:1096:405:2::32) To TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8041::8) X-Microsoft-Original-Message-ID: <20231031132901.11732-2-yangshiji66@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYAP286MB0315:EE_|TYYP286MB1668:EE_ X-MS-Office365-Filtering-Correlation-Id: cd680f62-63ab-400c-adc1-08dbda1568e3 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 52jYTXTKNJYpbgmMfTyFnfstyi86cdkxhkZHzO9XmHUabrGsIERLUjww9Lpk7QVqVHtdHoYMx/MLHh9RK1Zgd6CswilR+s7lKAWmYHRx8SOD+yNNEQr5q9kUejzEjzreBBjM9tq3UAJSBJcYrAiolzQIJJXf6Uov23Oh0K4s0+okYbjOV75KKF5lpxie/m4yr7GVJxXOtjtIF6AU3mwGOFCNNlRt3zdVChI094B/n2XzQaXnNDiwddWZD5fP63RiOFmD7tT1M2IHS3lVTfqYMbVZ2N31UCUVODTK3PiyT6aveber5FafaN54tl+cdxdl2YbFAXevjcNVblnd/3MKo6tivZ0gFjYhOoveKfwNhIjV+uTfgEsHl3VG7Uy9hlWCqh5BOdYDJ5FGY0aXocf8SWJjaCRHsGwQhtqyIyMNRI+08IocasGwts11kdIW0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QVzKmxJ97EelVtr1eLtuPrz7OM5pTW4xjXy2B72VsnArYzyUbXTx?= =?us-ascii?Q?q6ntLu2qndi8r7vQ4HXJB183fMWOEcy/zOQGH9K0BW8t5JEXN79KFRkL7Wtf?= =?us-ascii?Q?QI4wnOmmhvzgLrJOtDnMBoBMQwvWKM3U+uvrsSGfbzl+nqFagdW4fSSC0JrD?= =?us-ascii?Q?8OwaHUDUqP6MKzG6hKQsaa06QjiIbyjQI1bnz+m6BSLdWp59GmaQvotW8pTa?= =?us-ascii?Q?SFzE0gT14FKxMf9ZBP1awhSMtXmRtKbdizytqih9w7MaVsKkKoUYivJns9Li?= =?us-ascii?Q?eXUuun3HDp0DtyCNUX5vhiN6kuXL/A+zOLEVrFKFOlZiDKMDuiWNXQ5JmJaL?= =?us-ascii?Q?o8n9VPAt7yvEoJZqTWpZfF9JPu59+eSXWXnb9nUYbh3hgwrEn4XLEVqPnOP7?= =?us-ascii?Q?nRYFrErblo0NimO+ugDqi8ISESmRDyEeNg4Ozbx70QoijMwR+hlQ2hPr3uJZ?= =?us-ascii?Q?6AW4U/UF24A6X3NJm93E1ZaBzilfj9okjbSZYT/9pk2pgp//jMjiuM7ZKlyi?= =?us-ascii?Q?zyxt2jTAjKPSIB4dXvvl/sSs+QoUq4SUyGcrCLsZN+f2ITBcoMz7MA5H6CE?= =?us-ascii?Q?=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cd680f62-63ab-400c-adc1-08dbda1568e3 X-MS-Exchange-CrossTenant-AuthSource: TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Oct 2023 13:29:29.5363 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYYP286MB1668 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 31 Oct 2023 06:29:44 -0700 (PDT) Some new monochromatic LEDs have been introduced into DT bindings, but they do not have corresponding descriptions on the led_colors structure. This patch adds the missing LED color strings. Fixes: 472d7b9e8141 ("dt-bindings: leds: Expand LED_COLOR_ID definitions") Signed-off-by: Shiji Yang --- 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 214ed81eb..223023928 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.39.2