summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaeyoung <ty317.kim@samsung.com>2016-10-21 19:24:45 +0900
committertaeyoung <ty317.kim@samsung.com>2016-10-24 16:32:03 +0900
commit126634e0567406a96faf347db93756f2f60bd6eb (patch)
treeb9e34eb042636f8d358dd1211a3caa4e189cc75e
parent95f096cbe6f824aa2ca2afaec826d3dd1eb92e25 (diff)
downloadlibdevice-node-126634e0567406a96faf347db93756f2f60bd6eb.tar.gz
libdevice-node-126634e0567406a96faf347db93756f2f60bd6eb.tar.bz2
libdevice-node-126634e0567406a96faf347db93756f2f60bd6eb.zip
deviced will use the interface to convert the light sensing value to the brightness value to change. Change-Id: I89d0306d654273850067ee56216dae3ae84c65ef Signed-off-by: taeyoung <ty317.kim@samsung.com>
-rw-r--r--hw/display.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/display.h b/hw/display.h
index 2dbdf46..83ec3ed 100644
--- a/hw/display.h
+++ b/hw/display.h
@@ -67,6 +67,9 @@ struct display_device {
int (*get_brightness)(int *brightness);
int (*set_brightness)(int brightness);
+ /* Control display brightness by sensor */
+ int (*get_auto_brightness)(float lmax, float lmin, float light, int *brightness);
+
/* Control display state */
int (*get_state)(enum display_state *state);
int (*set_state)(enum display_state state);