diff options
author | Youngjae Cho <y0.cho@samsung.com> | 2019-10-30 13:53:33 +0900 |
---|---|---|
committer | Youngjae Cho <y0.cho@samsung.com> | 2019-10-30 13:53:33 +0900 |
commit | 6fa9f19ab8e8d0b9fb4f554fea8116acc08ac566 (patch) | |
tree | cb2f5c6956296ca0f1c51fff2c67f1f3147418c5 | |
parent | 889a110f73bca0bd4099f395389c674842a3204d (diff) | |
download | device-manager-plugin-emul-6fa9f19ab8e8d0b9fb4f554fea8116acc08ac566.tar.gz device-manager-plugin-emul-6fa9f19ab8e8d0b9fb4f554fea8116acc08ac566.tar.bz2 device-manager-plugin-emul-6fa9f19ab8e8d0b9fb4f554fea8116acc08ac566.zip |
Delete display_get_statesubmit/tizen/20191118.061624accepted/tizen/unified/20191118.122826
Use dpms_get_state() instead of HAL display_get_state
Change-Id: Ie2b8891cd408b64bf363fdccc3f44aef69fe6a06
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
-rw-r--r-- | hw/display/display.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/hw/display/display.c b/hw/display/display.c index 2398fff..71e7260 100644 --- a/hw/display/display.c +++ b/hw/display/display.c @@ -30,10 +30,6 @@ #define BACKLIGHT_PATH "/sys/class/backlight/emulator" #endif -#ifndef LCD_PATH -#define LCD_PATH "/sys/class/lcd/emulator" -#endif - static int display_get_max_brightness(int *val) { static int max = -1; @@ -95,32 +91,6 @@ static int display_set_brightness(int brightness) return 0; } -static int display_get_state(enum display_state *state) -{ - int r, v; - - r = sys_get_int(LCD_PATH"/lcd_power", &v); - if (r < 0) { - _E("fail to get state (errno:%d)", r); - return r; - } - - //remap LCD state - switch (v) { - case 0: - *state = DISPLAY_ON; - break; - case 4: - *state = DISPLAY_OFF; - break; - default: - *state = -EINVAL; - break; - } - - return 0; -} - static int display_open(struct hw_info *info, const char *id, struct hw_common **common) { @@ -137,7 +107,6 @@ static int display_open(struct hw_info *info, display_dev->get_max_brightness = display_get_max_brightness; display_dev->get_brightness = display_get_brightness; display_dev->set_brightness = display_set_brightness; - display_dev->get_state = display_get_state; *common = (struct hw_common *)display_dev; return 0; |