mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
power: Add POWER_HINT_DISABLE_TOUCH support
Change-Id: I363df278598e3402692424539638f3547c648e26
This commit is contained in:
parent
047075e2a7
commit
f9b8e83975
1 changed files with 8 additions and 0 deletions
|
@ -453,6 +453,14 @@ static void samsung_power_hint(struct power_module *module,
|
|||
int profile = *((intptr_t *)data);
|
||||
set_power_profile(samsung_pwr, profile);
|
||||
break;
|
||||
case POWER_HINT_DISABLE_TOUCH:
|
||||
ALOGV("%s: POWER_HINT_DISABLE_TOUCH", __func__);
|
||||
if (data) {
|
||||
sysfs_write(samsung_pwr->touchscreen_power_path, "0");
|
||||
} else {
|
||||
sysfs_write(samsung_pwr->touchscreen_power_path, "1");
|
||||
}
|
||||
break;
|
||||
default:
|
||||
ALOGW("%s: Unknown power hint: %d", __func__, hint);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue