From patchwork Fri Sep 20 17:41:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 174153 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp2785403ill; Fri, 20 Sep 2019 10:39:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlJPTO5IuPxZjWm7xngPRh5N230llZyeCgGAttL4kgWsxZqoszsTVqZroXWQQYGX7uTKdP X-Received: by 2002:aa7:c495:: with SMTP id m21mr4974898edq.287.1569001142963; Fri, 20 Sep 2019 10:39:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569001142; cv=none; d=google.com; s=arc-20160816; b=i5zllYrdruMH1BHmToVANk5db8hd7oyTQZ8gS+2I8L9o8jOUR9dQi5oX0UE8McTMH9 /LRY4uWJklT9fGfnqks0HqXE/JwuRzwuGS24tWo9f91XMjVxqqbL1rxOB1MiTNS7kbxF kWLEFcQ9keMQNJatyXMK7EmL56BhPf/ynCEldNaYDOClvajrX52lDG/UENxyQO69VjPr NqHjTFRUmfkh/0obtvw+SvIdyHZaT/WWJ8pb5b0sOxzYQgvv4ye4ZOYcjXKyfm67FRXb Gnhi0SqdIuv9SKJsx58axh7X7EyAH33Vuwi7bu8EAL0bTQfMU2TnrDiUNmhpjEMnX83E nOPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vNLixCA7rV3r89geVpDyZT2afzJln66pkNhtKdigswM=; b=IunIYd5Kid+UggtvNFbxJ7/TSvltwjJPw76Q4/8X5m5iEoz4M+9IXvZIm2V4M2fQzg Phlp+qmYVuE6qv0zdMyrZ9+VxKuRYivbHj8Eu5nEIIr/K+M5BCKdnWbbZ7dG6cgXH7Gt AxjLCqCBjCqb9On6ATWyeKss183Z9p1Kn6sah7dRWyd+DjvAtvokyS+D0X/be6aWtvPw 0gRs94qKda8KW0fo84+FB/ktW3/Mnt3CM7r8sX1mkWpag52VnDvq4vQZ0jpxihkhfto0 pHzZTR6YwMDldZAYfSFzm9GSyNDBl/LfD+yDFEzA1OPUxewXpMbZwSKTYuWFlqI0R9is zY2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=CM+D4oh9; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15si1819397eda.294.2019.09.20.10.39.02; Fri, 20 Sep 2019 10:39:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=CM+D4oh9; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393641AbfITRjB (ORCPT + 1 other); Fri, 20 Sep 2019 13:39:01 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:47666 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392294AbfITRia (ORCPT ); Fri, 20 Sep 2019 13:38:30 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8KHcRkn042379; Fri, 20 Sep 2019 12:38:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1569001107; bh=vNLixCA7rV3r89geVpDyZT2afzJln66pkNhtKdigswM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=CM+D4oh9e8YeV9WET3XKoe4RO8kXVnG0/FFu+mYcHbjQ/6Ew+1U2aT6WBIeye42W7 L65RiwRwiEMAwgtcKFH4nO1JKb5zBRVY5xK40EzgYcJGYkqBFL4XfdbNwTW56rpCoG 339vd4VsgUWi1fNKIR3l7fUbnfLnXddMFUUhV6rc= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8KHcRwJ021389 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 20 Sep 2019 12:38:27 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 20 Sep 2019 12:38:22 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Fri, 20 Sep 2019 12:38:27 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8KHcRs4060524; Fri, 20 Sep 2019 12:38:27 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v8 5/9] leds: Add multicolor ID to the color ID list Date: Fri, 20 Sep 2019 12:41:35 -0500 Message-ID: <20190920174139.30079-6-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20190920174139.30079-1-dmurphy@ti.com> References: <20190920174139.30079-1-dmurphy@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Add a new color ID that is declared as MULTICOLOR as with the multicolor framework declaring a definitive color is not accurate as the node can contain multiple colors. Signed-off-by: Dan Murphy --- drivers/leds/led-core.c | 1 + 1 file changed, 1 insertion(+) -- 2.22.0.214.g8dca754b1e diff --git a/drivers/leds/led-core.c b/drivers/leds/led-core.c index f1f718dbe0f8..846248a0693d 100644 --- a/drivers/leds/led-core.c +++ b/drivers/leds/led-core.c @@ -34,6 +34,7 @@ const char * const led_colors[LED_COLOR_ID_MAX] = { [LED_COLOR_ID_VIOLET] = "violet", [LED_COLOR_ID_YELLOW] = "yellow", [LED_COLOR_ID_IR] = "ir", + [LED_COLOR_ID_MULTI] = "multicolor", }; EXPORT_SYMBOL_GPL(led_colors);