summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2018-03-26 03:26:31 +0300
committerMichael Bestas <mkbestas@lineageos.org>2019-10-23 01:12:56 +0300
commit7dbfef3f4f963a5b05655346d0b4db2a0d27044a (patch)
tree73a0b59c1c1b1b69e7c8caabf4582e76d389399c
parenta250b9063caba339668dda3d3307f2245ad779dc (diff)
downloadvendor_qcom_opensource_power-7dbfef3f4f963a5b05655346d0b4db2a0d27044a.zip
vendor_qcom_opensource_power-7dbfef3f4f963a5b05655346d0b4db2a0d27044a.tar.gz
vendor_qcom_opensource_power-7dbfef3f4f963a5b05655346d0b4db2a0d27044a.tar.bz2
power: msm8996: Remove dead code
Change-Id: Ia26e5989a7063baad048e017715fe0f31332fb75
-rw-r--r--power-8996.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/power-8996.c b/power-8996.c
index 0f64559..2b72c21 100644
--- a/power-8996.c
+++ b/power-8996.c
@@ -131,32 +131,6 @@ int power_hint_override(power_hint_t hint, void* data) {
return ret_val;
}
-int set_interactive_override(int on) {
+int set_interactive_override(int UNUSED(on)) {
return HINT_HANDLED; /* Don't excecute this code path, not in use */
- char governor[80];
-
- if (get_scaling_governor(governor, sizeof(governor)) == -1) {
- ALOGE("Can't obtain scaling governor.");
-
- return HINT_NONE;
- }
-
- if (!on) {
- /* Display off */
- if (is_interactive_governor(governor)) {
- int resource_values[] = {}; /* dummy node */
- perform_hint_action(DISPLAY_STATE_HINT_ID, resource_values,
- ARRAY_SIZE(resource_values));
- ALOGI("Display Off hint start");
- return HINT_HANDLED;
- }
- } else {
- /* Display on */
- if (is_interactive_governor(governor)) {
- undo_hint_action(DISPLAY_STATE_HINT_ID);
- ALOGI("Display Off hint stop");
- return HINT_HANDLED;
- }
- }
- return HINT_NONE;
}