display: add getter for the maximum brightness of display 75/78775/1 accepted/tizen/common/20160804.174411 accepted/tizen/ivi/20160804.081141 accepted/tizen/mobile/20160804.081212 accepted/tizen/tv/20160804.081107 accepted/tizen/wearable/20160804.081125 submit/tizen/20160803.081834
authortaeyoung <ty317.kim@samsung.com>
Thu, 7 Jul 2016 00:45:40 +0000 (09:45 +0900)
committertaeyoung <ty317.kim@samsung.com>
Thu, 7 Jul 2016 00:49:56 +0000 (09:49 +0900)
- The maximum brightness of display varies
  according to the driver. Thus maximum brightness
  function is added for platform to adjust all cases.

Change-Id: Iab3c2b82372b174d569487b7c85f2024185a89b5
Signed-off-by: taeyoung <ty317.kim@samsung.com>
hw/display.h

index a913d39..2dbdf46 100644 (file)
@@ -62,7 +62,8 @@ enum display_panel_mode {
 struct display_device {
        struct hw_common common;
 
-       /* The brightness value is 0 to 100. */
+       /* Control display brightness */
+       int (*get_max_brightness)(int *brightness);
        int (*get_brightness)(int *brightness);
        int (*set_brightness)(int brightness);