mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
power: Allow POWER_HINT_DISABLE_TOUCH in low power mode
Remove the unused len var while we're at it. Change-Id: Iabaf3b8704072a8758b213a54530eaffbf0c7ae5
This commit is contained in:
parent
7f2c1bf988
commit
62b70f8299
1 changed files with 1 additions and 2 deletions
|
@ -477,11 +477,10 @@ static void samsung_power_hint(struct power_module *module,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
struct samsung_power_module *samsung_pwr = (struct samsung_power_module *) module;
|
struct samsung_power_module *samsung_pwr = (struct samsung_power_module *) module;
|
||||||
int len;
|
|
||||||
|
|
||||||
/* Bail out if low-power mode is active */
|
/* Bail out if low-power mode is active */
|
||||||
if (current_power_profile == PROFILE_POWER_SAVE && hint != POWER_HINT_LOW_POWER
|
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);
|
ALOGV("%s: PROFILE_POWER_SAVE active, ignoring hint %d", __func__, hint);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue