summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungjae Cho <y0.cho@samsung.com>2022-02-07 13:11:34 +0900
committerHyotaek Shim <hyotaek.shim@samsung.com>2022-02-07 07:00:06 +0000
commit412292d780f552de8b2bfb313d286666826e32e0 (patch)
tree734c7f873d37a4296cd6220471da567a4dad19bf
parente37752ba0ea9f09ca5f84883238ec625f588a4d2 (diff)
downloaddevice-vim3-412292d780f552de8b2bfb313d286666826e32e0.tar.gz
device-vim3-412292d780f552de8b2bfb313d286666826e32e0.tar.bz2
device-vim3-412292d780f552de8b2bfb313d286666826e32e0.zip
display: brightness control is not supportedsubmit/tizen/20220208.075544
Change-Id: I4d840034d819e248116a6b78c41109722fccc4de Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
-rw-r--r--hw/display/display.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/hw/display/display.c b/hw/display/display.c
index 6140400..41ccafd 100644
--- a/hw/display/display.c
+++ b/hw/display/display.c
@@ -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)