From patchwork Tue Oct 31 13:29:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiji Yang X-Patchwork-Id: 739852 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1369EC4167B for ; Tue, 31 Oct 2023 13:29:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344556AbjJaN3f (ORCPT ); Tue, 31 Oct 2023 09:29:35 -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> 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: 52jYTXTKNJYpbgmMfTyFnfstyi86cdkxhkZHzO9XmHUabrGs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KeTjGAmiwhYSXPZaJvDjfekBQGdUF+pxc56HwGLzDkx90Y029Ia26zBAl4RZ8i5SbkyWSzxDBzdBbalbsJUbMS+uSd0GwzZSOGjkAveGw+W6abnHR0i36pLm5OO1nF0DyTf/bxoBUh2lCatMich+4COfJU9law8xXV7QLwaBR1GQqvObwNZl7Qpa2o0u/wfYkKTDYJeCeMz9ju+aJedg0rDZ1+9qQ51+mIVa7QVzKmxJ97EelVtr1eLtuPrz7OM5pTW4xjXy2B72VsnArYzyUbXTxq6ntLu2qndi8r7vQ4HXJB183fMWOEcy/zOQGH9K0BW8t5JEXN79KFRkL7WtfQI4wnOmmhvzgLrJOtDnMBoBMQwvWKM3U+uvrsSGfbzl+nqFagdW4fSSC0JrD8OwaHUDUqP6MKzG6hKQsaa06QjiIbyjQI1bnz+m6BSLdWp59GmaQvotW8pTaSFzE0gT14FKxMf9ZBP1awhSMtXmRtKbdizytqih9w7MaVsKkKoUYivJns9LieXUuun3HDp0DtyCNUX5vhiN6kuXL/A+zOLEVrFKFOlZiDKMDuiWNXQ5JmJaLo8n9VPAt7yvEoJZqTWpZfF9JPu59+eSXWXnb9nUYbh3hgwrEn4XLEVqPnOP7nRYFrErblo0NimO+ugDqi8ISESmRDyEeNg4Ozbx70QoijMwR+hlQ2hPr3uJZ6AW4U/UF24A6X3NJm93E1ZaBzilfj9okjbSZYT/9pk2pgp//jMjiuM7ZKlyizyxt2jTAjKPSIB4dXvvl/sSs+QoUq4SUyGcrCLsZN+f2ITBcoMz7MA5H6CE= 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 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org 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);