From patchwork Tue Oct 1 14:56:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 174872 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp8663588ill; Tue, 1 Oct 2019 07:56:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMn3fT5HtISxoUMTxo4pVB+UQ4krZOy7vWfQkJb8FUUU/X5JVhZpw7VkwJVBjIwRIUkmyc X-Received: by 2002:a05:6402:17a2:: with SMTP id j2mr26124253edy.121.1569941769776; Tue, 01 Oct 2019 07:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569941769; cv=none; d=google.com; s=arc-20160816; b=sWnZUp1ZTJZQVbPZTVYEi53FQIH9zwUDoGJyn+DL69lDjiIfHxXVgdMLdHOnznLDNE L5iBAiU2acvf2b/2VwQ+jKvGysdDioEhazx20sg1FcF4ju6OeeG5cDlYWwDQAvwp0jL9 UJGQoa/R5FFJcq/K1Usd58xxqQRiI2ybUnFrVxNMdzovi9ZE4/9HmqyUiGlaL919MLFd agFU7k4BJ+Y+q3wQSaDTc+EeuMkpaOYMJKUwWU2OBKmcLnlCzgHzvJovCG0tES2DqEzW sGUeqscYE1w908hTFy01Qp0Up5D5WkrB8DXrrEpFuwUa+GxRiKsZ1LF1Tt7ChEbYXQEr 8Hcw== 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=Mg4rGENZpjXnTRuV900weT8Jt1Y8pYZA+kz5d1ijRabz7JPVaP5DXRLCgcIkbXztW8 fLGM8JzUnHa586s4ZIBENJ9quwo78sDdiKH8RPZsYHTy0EOnGquRv8ZsWvfRS/DF+rUi kilCg7oHg0lDt6c6vJGam5ItkIhXhhkU7i93QSaoYY2mFdBbZjaKxfVI7IgjWelY8LIP ietmnAmal+0FRffjpfQ5Yq6oYEmtm3GpXxyXwLfxDWRvBYncOXaaPo0QN97nqQ9fyny2 QJULJRuouRb8SGjP3GnjGZfUkdRJzET6qWg6B5l6Yk61Y4rrtYW0HT9vJ8UAox3SXWzz 2MeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vwcfcPJ5; 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 s14si8535929eju.289.2019.10.01.07.56.09; Tue, 01 Oct 2019 07:56:09 -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=vwcfcPJ5; 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 S2389346AbfJAO4J (ORCPT + 1 other); Tue, 1 Oct 2019 10:56:09 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:50116 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389278AbfJAO4J (ORCPT ); Tue, 1 Oct 2019 10:56:09 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x91Eu5H1007758; Tue, 1 Oct 2019 09:56:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1569941765; bh=vNLixCA7rV3r89geVpDyZT2afzJln66pkNhtKdigswM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=vwcfcPJ5GjUniCRUN25l5Qtz+OFPZE9gvl7ubhA99gNT/whzeK6Eg5wHKut1vQVNB yAbmYw0G3B+cikNY/YnR4mvJXFk2gFnlX4K64XLpBQEzzLrnXO2OImo7xYdxTX4HMx GSDPXiEOmrSwZe0Hq64eMnWlxVWCA5Kv3SyUDC44= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x91Eu58E063970; Tue, 1 Oct 2019 09:56:05 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 1 Oct 2019 09:55:54 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE111.ent.ti.com (10.64.6.32) 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; Tue, 1 Oct 2019 09:56:04 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x91Eu4O8044661; Tue, 1 Oct 2019 09:56:04 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v10 03/16] leds: Add multicolor ID to the color ID list Date: Tue, 1 Oct 2019 09:56:07 -0500 Message-ID: <20191001145620.11123-4-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20191001145620.11123-1-dmurphy@ti.com> References: <20191001145620.11123-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);