From 412292d780f552de8b2bfb313d286666826e32e0 Mon Sep 17 00:00:00 2001 From: Youngjae Cho Date: Mon, 7 Feb 2022 13:11:34 +0900 Subject: [PATCH] display: brightness control is not supported Change-Id: I4d840034d819e248116a6b78c41109722fccc4de Signed-off-by: Youngjae Cho --- hw/display/display.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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) -- 2.34.1