Skip to content

Commit

Permalink
dt-binding: leds: Add common LED DT bindings macros
Browse files Browse the repository at this point in the history
Add macros for defining boost mode and trigger type properties
of flash LED devices.

Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
  • Loading branch information
janaszewski authored and cooloney committed Mar 30, 2015
1 parent 93c64f1 commit 5e23a35
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions include/dt-bindings/leds/common.h
Original file line number Diff line number Diff line change
@@ -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 <j.anaszewski@samsung.com>
*/

#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 */

0 comments on commit 5e23a35

Please sign in to comment.