projects
/
platform
/
core
/
system
/
libdevice-node.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22be1ab
)
led: add getter function
23/112623/1
tizen_3.0
submit/tizen_3.0/20170202.060211
author
taeyoung
<ty317.kim@samsung.com>
Thu, 2 Feb 2017 04:34:42 +0000
(13:34 +0900)
committer
taeyoung
<ty317.kim@samsung.com>
Thu, 2 Feb 2017 04:34:42 +0000
(13:34 +0900)
- The getter function provides current led state.
If the led is on the off state, the output struct
will contain 0 values.
Change-Id: Id83363dfbdd5302b7957c19a2b3b36efa952f5fb
Signed-off-by: taeyoung <ty317.kim@samsung.com>
hw/led.h
patch
|
blob
|
history
diff --git
a/hw/led.h
b/hw/led.h
index 69c6c10076bfac4aa8f1291faaff4183512939a9..1d54616730ee05ba56bf189cf54cdeb7585e19b5 100644
(file)
--- a/
hw/led.h
+++ b/
hw/led.h
@@
-68,6
+68,11
@@
struct led_device {
* Set led state
*/
int (*set_state)(struct led_state *state);
+
+ /**
+ * Get led state
+ */
+ int (*get_state)(struct led_state **state);
};
#endif