mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
dt-binding: leds: Add common LED DT bindings macros
Add macros for defining boost mode and trigger type properties of flash LED devices. Signed-off-by: Jacek Anaszewski <[email protected]> Acked-by: Kyungmin Park <[email protected]> Cc: Richard Purdie <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
This commit is contained in:
parent
93c64f1ea1
commit
5e23a35cf8
1 changed files with 21 additions and 0 deletions
21
include/dt-bindings/leds/common.h
Normal file
21
include/dt-bindings/leds/common.h
Normal file
|
|
@ -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 */
|
||||
Loading…
Reference in a new issue