display: brightness control is not supported 08/270608/3 submit/tizen/20220208.075544
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 7 Feb 2022 04:11:34 +0000 (13:11 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 7 Feb 2022 07:00:06 +0000 (07:00 +0000)
Change-Id: I4d840034d819e248116a6b78c41109722fccc4de
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
hw/display/display.c

index 6140400caf9286f4b90137a67909d50ae27bcf23..41ccafdd159bb1817858feec4189e804eb548bca 100644 (file)
@@ -35,6 +35,8 @@
 
 static int display_get_max_brightness(int *val)
 {
+       /* XXX: Not supports brightness control yet.
+        * To get in line with behaviour of deviced, return pseudo value.
        static int max = -1;
        int r;
 
@@ -49,10 +51,15 @@ static int display_get_max_brightness(int *val)
 
        *val = max;
        return 0;
+       */
+       *val = 100;
+
+       return 0;
 }
 
 static int display_get_brightness(int *brightness)
 {
+       /* XXX: Not supports brightness control yet.
        int r, v;
 
        if (!brightness) {
@@ -68,10 +75,13 @@ static int display_get_brightness(int *brightness)
 
        *brightness = v;
        return 0;
+       */
+       return -ENOTSUP;
 }
 
 static int display_set_brightness(int brightness)
 {
+       /* XXX: Not supports brightness control yet.
        int r, max;
 
        r = display_get_max_brightness(&max);
@@ -92,6 +102,8 @@ static int display_set_brightness(int brightness)
        }
 
        return 0;
+       */
+       return -ENOTSUP;
 }
 
 static int display_init(void **data)