display: add interface to convert light sensing value to brightness 68/93268/4 accepted/tizen/common/20161024.135223 accepted/tizen/common/20161025.083538 accepted/tizen/ivi/20161028.151032 accepted/tizen/mobile/20161028.150956 accepted/tizen/tv/20161028.151007 accepted/tizen/wearable/20161028.151022 submit/tizen/20161024.103433 submit/tizen/20161025.065819 submit/tizen_3.0_common/20161104.104000
authortaeyoung <ty317.kim@samsung.com>
Fri, 21 Oct 2016 10:24:45 +0000 (19:24 +0900)
committertaeyoung <ty317.kim@samsung.com>
Mon, 24 Oct 2016 07:32:03 +0000 (16:32 +0900)
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>
hw/display.h

index 2dbdf468766068d71071dcd1154cdaeb258ada64..83ec3eddb76f5a3ed31d92f3406701c2d9f2afe6 100644 (file)
@@ -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);