diff options
author | Youngjae Cho <y0.cho@samsung.com> | 2022-02-07 13:11:34 +0900 |
---|---|---|
committer | Youngjae Cho <y0.cho@samsung.com> | 2022-02-08 00:06:58 -0800 |
commit | e86b9bb79d0e49fde21ffb3a27882334900aacfa (patch) | |
tree | 1dbb33d1e7737ef773911dd954bfc047e1f155e6 | |
parent | 95e6e27b2bf617950e451f0822c61e1d0b6021e9 (diff) | |
download | device-rpi-e86b9bb79d0e49fde21ffb3a27882334900aacfa.tar.gz device-rpi-e86b9bb79d0e49fde21ffb3a27882334900aacfa.tar.bz2 device-rpi-e86b9bb79d0e49fde21ffb3a27882334900aacfa.zip |
display: return -ENOTSUP if there is no brightness nodesubmit/tizen/20220208.075544
Change-Id: Ic42e6ca43297dc8a7e7c9ad8547b0397039e7dd5
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
-rw-r--r-- | hw/display/display.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/display/display.c b/hw/display/display.c index 1f11726..a3c4d54 100644 --- a/hw/display/display.c +++ b/hw/display/display.c @@ -44,7 +44,7 @@ static int display_get_max_brightness(int *val) if (max < 0) { r = sys_get_int(BACKLIGHT_PATH"/max_brightness", &max); if (r < 0) - return r; + return -ENOTSUP; } *val = max; @@ -63,7 +63,7 @@ static int display_get_brightness(int *brightness) r = sys_get_int(BACKLIGHT_PATH"/brightness", &v); if (r < 0) { _E("fail to get brightness (errno:%d)", r); - return r; + return -ENOTSUP; } *brightness = v; @@ -77,7 +77,7 @@ static int display_set_brightness(int brightness) r = display_get_max_brightness(&max); if (r < 0) { _E("fail to get max brightness (errno:%d)", r); - return r; + return -ENOTSUP; } if (brightness < 0 || brightness > max) { |