diff options
author | Michael Bestas <mkbestas@lineageos.org> | 2019-10-06 05:31:02 +0300 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2019-10-23 01:12:56 +0300 |
commit | 11a94e360a53939a0a66e67e0b975a9d47e115e1 (patch) | |
tree | eeb694149fda5393262acc98657c62ef5fd717aa | |
parent | b1d08ab0de8338103a7424c8871f19b2d5616288 (diff) | |
download | vendor_qcom_opensource_power-11a94e360a53939a0a66e67e0b975a9d47e115e1.tar.gz vendor_qcom_opensource_power-11a94e360a53939a0a66e67e0b975a9d47e115e1.tar.bz2 vendor_qcom_opensource_power-11a94e360a53939a0a66e67e0b975a9d47e115e1.zip |
power: msm8952: Remove HBTP support
* Not used
Change-Id: I208275139b95911c88ccf930bf65e0c6089cc94a
-rw-r--r-- | power-8952.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/power-8952.c b/power-8952.c index e2610d9..f023243 100644 --- a/power-8952.c +++ b/power-8952.c @@ -53,8 +53,6 @@ static int video_encode_hint_sent; static void process_video_encode_hint(void* metadata); -static int display_fd; -#define SYS_DISPLAY_PWR "/sys/kernel/hbtp/display_pwr" /** * Returns true if the target is SDM439/SDM429. @@ -87,13 +85,6 @@ int power_hint_override(power_hint_t hint, void* data) { int set_interactive_override(int on) { char governor[80]; - int rc = 0; - - static const char* display_on = "1"; - static const char* display_off = "0"; - char err_buf[80]; - static int init_interactive_hint = 0; - static int set_i_count = 0; ALOGI("Got set_interactive hint"); @@ -125,35 +116,6 @@ int set_interactive_override(int on) { undo_hint_action(DISPLAY_STATE_HINT_ID); } } - - set_i_count++; - ALOGI("Got set_interactive hint on= %d, count= %d\n", on, set_i_count); - - if (init_interactive_hint == 0) { - // First time the display is turned off - display_fd = TEMP_FAILURE_RETRY(open(SYS_DISPLAY_PWR, O_RDWR)); - if (display_fd < 0) { - strerror_r(errno, err_buf, sizeof(err_buf)); - ALOGE("Error opening %s: %s\n", SYS_DISPLAY_PWR, err_buf); - return HINT_HANDLED; - } else - init_interactive_hint = 1; - } else if (!on) { - /* Display off. */ - rc = TEMP_FAILURE_RETRY(write(display_fd, display_off, strlen(display_off))); - if (rc < 0) { - strerror_r(errno, err_buf, sizeof(err_buf)); - ALOGE("Error writing %s to %s: %s\n", display_off, SYS_DISPLAY_PWR, err_buf); - } - } else { - /* Display on */ - rc = TEMP_FAILURE_RETRY(write(display_fd, display_on, strlen(display_on))); - if (rc < 0) { - strerror_r(errno, err_buf, sizeof(err_buf)); - ALOGE("Error writing %s to %s: %s\n", display_on, SYS_DISPLAY_PWR, err_buf); - } - } - return HINT_HANDLED; } |