From 126634e0567406a96faf347db93756f2f60bd6eb Mon Sep 17 00:00:00 2001 From: taeyoung Date: Fri, 21 Oct 2016 19:24:45 +0900 Subject: display: add interface to convert light sensing value to brightness deviced will use the interface to convert the light sensing value to the brightness value to change. Change-Id: I89d0306d654273850067ee56216dae3ae84c65ef Signed-off-by: taeyoung --- hw/display.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hw') 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); -- cgit v1.2.3