From patchwork Mon Apr 1 17:33:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 161565 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp750252jan; Mon, 1 Apr 2019 10:45:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMqPFjuqyHqmxtcsxFdFhftKaRD2SuEPG2zkDHcng2ZdYfjs8XNQly9cyZvYrVy7tZHwn6 X-Received: by 2002:a17:902:3a5:: with SMTP id d34mr62835481pld.174.1554140725838; Mon, 01 Apr 2019 10:45:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554140725; cv=none; d=google.com; s=arc-20160816; b=s9zJyK46CckTNc5qWReQ8AtF9rThX8lRhSpfFdxZa9ySbUgatVZWjBMpeECbecTuhY vO9JC9EmLItOACfpLllb9ebBmRejFDVbgQe+SiNVJvdTOKKgt6KJ4hY45tDKIeA7cSfG KRqEkRH8kGGB6dURPUVNJmG/eD9r0bT2jMJUf45XnsiZbr+Aw8hJPYguP43BXnfZ/eYa ZYcltiOBk5bMNZ2BsC2C71DJ4WWzhKx4HvQalKxpn9ohFvsAYky/sxhHNlmtYOkq6yWY nWRF1wGsKZMZqQoPH/BBUiaBisxf8nbuDDpIiC0JyXgQa7lhM3SN1EmJMHX3aQ6w8C0u CcNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=NRAX1bmUD/a5vpTS0wktfjeVShF+ASYaJwyo80uQPIU=; b=woeP61hdvHTCo8/FpmSu4lQFBchiPVEtq/GkBcBjFMNeUj2A6j0/942ZFXE25aCo9Z vgjpuMZ69yWFCeK/35GuRV36U96J5EJHOutmpqhtgVLiAsgGTCaKPTqIsLRhmy0KG292 O84qODzhWv03PjOHUpuUpkUAygW3UtU+9H5JYe1Ir9WuHvT2sTf/JZus8vmhcDcEQvXS rc1fWGZfNC9pyL6L3CO6irJ0ppYQ6tqBPEwwyAjzN19AHoHHmJ6YZSjFYVf55BtwxDWe 7rRNsHxAONO1Pi08+cUldOzP/7HWWdRqJmxJhM7Pe8eQjlJUWZNo+v8xLRRuZ0O8ZkxL PgZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dadz98qR; 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 l12si9424822pgs.184.2019.04.01.10.45.25; Mon, 01 Apr 2019 10:45:25 -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=dadz98qR; 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 S2387865AbfDARpZ (ORCPT + 1 other); Mon, 1 Apr 2019 13:45:25 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:34218 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387736AbfDAReR (ORCPT ); Mon, 1 Apr 2019 13:34:17 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x31HY513129032; Mon, 1 Apr 2019 12:34:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1554140045; bh=NRAX1bmUD/a5vpTS0wktfjeVShF+ASYaJwyo80uQPIU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=dadz98qRycyCc38L7Pl/A6M5ZbZcYBByuYZd8vwVY+5LYSkVS6VhyNyo+MgN8VPnc 6hLbNCueKf12cjYrPjl/hwX0ye2jjmZJlWRJzTNKaNeaLJ3/sPdYsr/p/MxX9qUX6g 3wM4ic0f88jrZ7g2kMfixpTLbAlIdbgC7vRx+iKw= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x31HY50N110657 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 1 Apr 2019 12:34:05 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) 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; Mon, 1 Apr 2019 12:34:05 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE113.ent.ti.com (157.170.170.24) 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; Mon, 1 Apr 2019 12:34:05 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x31HY5Ep101354; Mon, 1 Apr 2019 12:34:05 -0500 From: Dan Murphy To: , , CC: , , , Dan Murphy Subject: [RFC PATCH 4/5] dt-bindings: leds: Add LED_COLOR_ID and COLOR_NAME definitions Date: Mon, 1 Apr 2019 12:33:59 -0500 Message-ID: <20190401173400.14238-5-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20190401173400.14238-1-dmurphy@ti.com> References: <20190401173400.14238-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 This patch is being added to demonstrate reuse of Jacek's patch https://lore.kernel.org/patchwork/patch/1056726/ I have added color name definitions to the above patch. I do not claim authorship and the intent of this patch to strictly for demonstration. Signed-off-by: Dan Murphy --- include/dt-bindings/leds/common.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) -- 2.19.0 diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h index e171d0a6beb2..7e1279d761e4 100644 --- a/include/dt-bindings/leds/common.h +++ b/include/dt-bindings/leds/common.h @@ -19,4 +19,23 @@ #define LEDS_BOOST_ADAPTIVE 1 #define LEDS_BOOST_FIXED 2 +#define LED_COLOR_ID_WHITE 0 +#define LED_COLOR_ID_RED 1 +#define LED_COLOR_ID_GREEN 2 +#define LED_COLOR_ID_BLUE 3 +#define LED_COLOR_ID_AMBER 4 +#define LED_COLOR_ID_VIOLET 5 +#define LED_COLOR_ID_YELLOW 6 +#define LED_COLOR_ID_MAX LED_COLOR_ID_YELLOW + +#define LED_COLOR_NAME_WHITE "white" +#define LED_COLOR_NAME_RED "red" +#define LED_COLOR_NAME_GREEN "green" +#define LED_COLOR_NAME_BLUE "blue" +#define LED_COLOR_NAME_AMBER "amber" +#define LED_COLOR_NAME_VIOLET "violet" +#define LED_COLOR_NAME_YELLOW "yellow" + +#define LED_COLOR_NAME_MAX_SZ 6 + #endif /* __DT_BINDINGS_LEDS_H */