diff options
author | Youngjae Cho <y0.cho@samsung.com> | 2022-02-07 13:11:56 +0900 |
---|---|---|
committer | Youngjae Cho <y0.cho@samsung.com> | 2022-02-07 15:40:33 +0900 |
commit | 18d894cd742ed9b0ac5e08c1cbaf1b656048420f (patch) | |
tree | 325f49c8a38795b6548f0e93872d9ed10a6f8d60 | |
parent | ce22636285caf75ca537fba54d01834a1cdb6218 (diff) | |
download | device-c4-18d894cd742ed9b0ac5e08c1cbaf1b656048420f.tar.gz device-c4-18d894cd742ed9b0ac5e08c1cbaf1b656048420f.tar.bz2 device-c4-18d894cd742ed9b0ac5e08c1cbaf1b656048420f.zip |
display: brightness control is not supportedsubmit/tizen/20220208.075544submit/tizen/20220208.052553
Change-Id: Ib984846ff7d0fd877978bf7db9a05aa9438906c3
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
-rw-r--r-- | hw/display/display.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hw/display/display.c b/hw/display/display.c index 6651f5e..c237c0e 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; @@ -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) |