display: brightness control is not supported 41/270641/1 accepted/tizen/6.5/unified/20220212.065119 submit/tizen_6.5/20220208.052648
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 7 Feb 2022 04:11:56 +0000 (13:11 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 7 Feb 2022 07:00:59 +0000 (07:00 +0000)
Change-Id: Ib984846ff7d0fd877978bf7db9a05aa9438906c3
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 18d894cd742ed9b0ac5e08c1cbaf1b656048420f)

hw/display/display.c

index 6651f5e5764042c804373d855342330f0433b06a..c237c0e3934e2b605fa0475c7c3f508ec0d7a0ab 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;
 
@@ -48,11 +50,15 @@ static int display_get_max_brightness(int *val)
        }
 
        *val = max;
+       */
+       *val = 100;
+
        return 0;
 }
 
 static int display_get_brightness(int *brightness)
 {
+       /* XXX: Not supports brightness control yet.
        int r, v;
 
        if (!brightness) {
@@ -68,10 +74,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 +101,8 @@ static int display_set_brightness(int brightness)
        }
 
        return 0;
+       */
+       return -ENOTSUP;
 }
 
 static int display_init(void **data)