display: brightness control is not supported 42/270642/1 accepted/tizen/6.5/unified/20220212.065130 submit/tizen_6.5/20220208.052648
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:01:15 +0000 (07:01 +0000)
Change-Id: I4d840034d819e248116a6b78c41109722fccc4de
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 412292d780f552de8b2bfb313d286666826e32e0)

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)