From patchwork Wed Mar 4 16:14:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 5937961 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 47046BF440 for ; Wed, 4 Mar 2015 16:22:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EE243202B8 for ; Wed, 4 Mar 2015 16:22:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0C1DC201B4 for ; Wed, 4 Mar 2015 16:22:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933141AbbCDQQQ (ORCPT ); Wed, 4 Mar 2015 11:16:16 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:12578 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933038AbbCDQQN (ORCPT ); Wed, 4 Mar 2015 11:16:13 -0500 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NKP00JEI3UZSCC0@mailout3.samsung.com>; Thu, 05 Mar 2015 01:16:11 +0900 (KST) X-AuditID: cbfee61a-f79c06d000004e71-20-54f72fcb5f9a Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 63.A4.20081.BCF27F45; Thu, 05 Mar 2015 01:16:11 +0900 (KST) Received: from AMDC2362.DIGITAL.local ([106.120.53.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NKP0082A3SJHN70@mmp1.samsung.com>; Thu, 05 Mar 2015 01:16:11 +0900 (KST) From: Jacek Anaszewski To: linux-leds@vger.kernel.org, linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kyungmin.park@samsung.com, pavel@ucw.cz, cooloney@gmail.com, rpurdie@rpsys.net, sakari.ailus@iki.fi, s.nawrocki@samsung.com, Jacek Anaszewski Subject: [PATCH/RFC v12 04/19] dt-binding: leds: Add common LED DT bindings macros Date: Wed, 04 Mar 2015 17:14:25 +0100 Message-id: <1425485680-8417-5-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1425485680-8417-1-git-send-email-j.anaszewski@samsung.com> References: <1425485680-8417-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLLMWRmVeSWpSXmKPExsVy+t9jAd3T+t9DDDb0yVgc3TmRyWL+kXOs Fr1XnzNanG16w25xedccNoutb9YxWvRs2MpqcffUUTaL3bueslocftPOanFm/0o2B26PnbPu snsc/rqQxWPP/B+sHn1bVjF6rFj9nd3j8ya5ALYoLpuU1JzMstQifbsErozDu2+zFqzkrLjz 4T5TA+M79i5GTg4JAROJy02/mSFsMYkL99azdTFycQgJLGKUmHJjMyuE084kcaDtMlgVm4Ch xM8Xr5lAbBEBa4lZh6azgBQxC7xhlJi14RxYQlggRGJ183dGEJtFQFXi1rQfbCA2r4C7xJ8L v4EaOIDWKUjMmWQDEuYU8JA4e3M9WKsQUMnhh/tZJjDyLmBkWMUomlqQXFCclJ5rqFecmFtc mpeul5yfu4kRHIjPpHYwrmywOMQowMGoxMObEf0tRIg1say4MvcQowQHs5II73O27yFCvCmJ lVWpRfnxRaU5qcWHGKU5WJTEeZXs20KEBNITS1KzU1MLUotgskwcnFINjHnbv2zx5NC/8Mcx 79T3VMGd1wU+OG3yWxRfeKpHQy0q7+SZ039/ZQXfePvld9KylLv9asHJRv4BGyeX+gcy3BZz nXg3SXwqh8f8m30r7eLjhGr/1E58XxldM+uhn9u8mIfKh9XD+P5cU5q05cgJFSnjVVfvlhgr lhnPFtrsFhrl+bqQT9hUTomlOCPRUIu5qDgRAHuKKbZAAgAA Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add macros for defining boost mode and trigger type properties of flash LED devices. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Bryan Wu Cc: Richard Purdie --- include/dt-bindings/leds/max77693.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 include/dt-bindings/leds/max77693.h diff --git a/include/dt-bindings/leds/max77693.h b/include/dt-bindings/leds/max77693.h new file mode 100644 index 0000000..79fcef7 --- /dev/null +++ b/include/dt-bindings/leds/max77693.h @@ -0,0 +1,21 @@ +/* + * This header provides macros for the common LEDs device tree bindings. + * + * Copyright (C) 2015, Samsung Electronics Co., Ltd. + * + * Author: Jacek Anaszewski + */ + +#ifndef __DT_BINDINGS_LEDS_H__ +#define __DT_BINDINGS_LEDS_H + +/* External trigger type */ +#define LEDS_TRIG_TYPE_EDGE 0 +#define LEDS_TRIG_TYPE_LEVEL 1 + +/* Boost modes */ +#define LEDS_BOOST_OFF 0 +#define LEDS_BOOST_ADAPTIVE 1 +#define LEDS_BOOST_FIXED 2 + +#endif /* __DT_BINDINGS_LEDS_H */