From patchwork Thu Apr 11 19:38:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 162072 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp7820343jan; Thu, 11 Apr 2019 12:39:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzB280sHSWdVdZbHSMlJf/SclcPw0702yaUZSdMU0PjagWSyj8aqJBdxzMYaBrk49K8M8NX X-Received: by 2002:a63:f40d:: with SMTP id g13mr49953817pgi.345.1555011551332; Thu, 11 Apr 2019 12:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555011551; cv=none; d=google.com; s=arc-20160816; b=Q3Ny1A5qSxTYhM7WNrxq8NQeXhymi5Kg0N7q4xMfybw+sAe3AHy0Lu6xHFvNlYyj+4 8cmzGAqOCjZuDdx6F7dHVz4t03yAvBRkE0HwYMRDJUv8xuNH3Zz6za4JPrEO0w7bZith Ihf/otYOFc88NdFgtwxkyLo69y9blzdVwF5WQ+ck2tuvC5T0ps45Od3BiVbcWwTRDnTd 7j+TQzrq4apvSzh7TOiRXkZnOPdgKALhVxdNrmSag1ubiqCL+pEptdj63K/Im98OeVAS 3u8DpLTXSHQylxND5/s4r2LVB8Nfyo25+4wUK0MJLsRpirE105FHBlEVj9KVVALMQu4J ibPw== 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=baqNVO7clRuyE5fP6zoOVX4pSxUZ/nsAbVFV7wkYINw=; b=e2NiDSEXDuFXaeeRwZ2ctw323m1E3d51++35QYoVrWeVE5hWdm/VbPzhQ+ed0+tSij qG0Yr7PE6Xkw8o4brdn5xlBLQzEM6Nb8Eydik5Y+PxvDqk11j/Pa1KPDvnS4v3Kc5/rU OhtCsKwFm099/dGl3ShaR4+uDLJXxjlEUwih9ArkoNsd4puwiZ9S4rFEv/2JtfdzmWej 4Fa52rg6aaGFadCole4ukMMi2G85tEYTLT8AlkkZl5MMSTxLIJGpDze6HQJ/KLiLDOkP Hxs6Ep9N/edECClIvBzSWvPNmGh5ZZfmK6wTgQIlcXSn9h1JY1aBbBNOQSWr5/HzA/ki ElfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=VExnVpkW; 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 k131si35616713pga.267.2019.04.11.12.39.11; Thu, 11 Apr 2019 12:39:11 -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=VExnVpkW; 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 S1726661AbfDKTjL (ORCPT + 1 other); Thu, 11 Apr 2019 15:39:11 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:50452 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726633AbfDKTjK (ORCPT ); Thu, 11 Apr 2019 15:39:10 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3BJcpPs097034; Thu, 11 Apr 2019 14:38:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1555011531; bh=baqNVO7clRuyE5fP6zoOVX4pSxUZ/nsAbVFV7wkYINw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=VExnVpkW31gv5R/TPVQKllr6TeY+e/4B98I503LB8AJySE3+65ySZwL8NvZcP633g ZyP7iO5pySLtC/lrWaHY28P25f6+pvKJA5W0c5fQIcjHkk+9n3W+6NDEeDXvwTwvCr vyUcd0idH4aawprBpoNyUMfAIwJAz4tW0Gd+PN0E= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3BJcp6Z120624 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 11 Apr 2019 14:38:51 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 11 Apr 2019 14:38:51 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE103.ent.ti.com (157.170.170.33) 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; Thu, 11 Apr 2019 14:38:51 -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 x3BJcoZW073810; Thu, 11 Apr 2019 14:38:50 -0500 From: Dan Murphy To: , , , , CC: , , , Dan Murphy Subject: [PATCH v2 4/7] dt-bindings: leds: Add multicolor ID to the color ID list Date: Thu, 11 Apr 2019 14:38:45 -0500 Message-ID: <20190411193848.23140-5-dmurphy@ti.com> X-Mailer: git-send-email 2.21.0.5.gaeb582a983 In-Reply-To: <20190411193848.23140-1-dmurphy@ti.com> References: <20190411193848.23140-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-class.c | 1 + include/dt-bindings/leds/common.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) -- 2.21.0.5.gaeb582a983 diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c index bfd46a9bba63..11dd78b63403 100644 --- a/drivers/leds/led-class.c +++ b/drivers/leds/led-class.c @@ -35,6 +35,7 @@ const char *led_colors[LED_COLOR_ID_COUNT] = { [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); diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h index c95f39b3a254..f6df2c63398e 100644 --- a/include/dt-bindings/leds/common.h +++ b/include/dt-bindings/leds/common.h @@ -64,6 +64,7 @@ #define LED_COLOR_ID_VIOLET 5 #define LED_COLOR_ID_YELLOW 6 #define LED_COLOR_ID_IR 7 -#define LED_COLOR_ID_COUNT 8 +#define LED_COLOR_ID_MULTI 8 +#define LED_COLOR_ID_COUNT 9 #endif /* __DT_BINDINGS_LEDS_H */