diff options
author | Christopher N. Hesse <raymanfx@gmail.com> | 2018-02-19 23:20:14 +0100 |
---|---|---|
committer | Christopher N. Hesse <raymanfx@gmail.com> | 2018-02-23 18:24:30 +0000 |
commit | 4920b3238ba11d2a2a5c671f0a8d7bfd92d95f6c (patch) | |
tree | ccd9c11203d433a58e871a49c555730b770b3628 | |
parent | 032a3d5f978c7245a8ebeb2c433320ab11b30fbb (diff) | |
download | android_hardware_samsung-4920b3238ba11d2a2a5c671f0a8d7bfd92d95f6c.tar.gz android_hardware_samsung-4920b3238ba11d2a2a5c671f0a8d7bfd92d95f6c.tar.bz2 android_hardware_samsung-4920b3238ba11d2a2a5c671f0a8d7bfd92d95f6c.zip |
power: Allow POWER_HINT_DISABLE_TOUCH in low power mode
Remove the unused len var while we're at it.
Change-Id: Iabaf3b8704072a8758b213a54530eaffbf0c7ae5
-rw-r--r-- | power/power.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/power/power.c b/power/power.c index ac61d3f..a34a5b5 100644 --- a/power/power.c +++ b/power/power.c @@ -477,11 +477,10 @@ static void samsung_power_hint(struct power_module *module, void *data) { struct samsung_power_module *samsung_pwr = (struct samsung_power_module *) module; - int len; /* Bail out if low-power mode is active */ if (current_power_profile == PROFILE_POWER_SAVE && hint != POWER_HINT_LOW_POWER - && hint != POWER_HINT_SET_PROFILE) { + && hint != POWER_HINT_SET_PROFILE && hint != POWER_HINT_DISABLE_TOUCH) { ALOGV("%s: PROFILE_POWER_SAVE active, ignoring hint %d", __func__, hint); return; } |