From 6976a97dad19f2926dac603bb09f73f3607f5e36 Mon Sep 17 00:00:00 2001 From: taeyoung Date: Thu, 2 Feb 2017 13:34:42 +0900 Subject: [PATCH] led: add getter function - 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 --- hw/led.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw/led.h b/hw/led.h index 69c6c10..1d54616 100644 --- 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 -- 2.34.1