projects
/
GitHub
/
LineageOS
/
android_hardware_samsung.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
047075e
)
power: Add POWER_HINT_DISABLE_TOUCH support
author
Christopher N. Hesse
<raymanfx@gmail.com>
Mon, 16 Jan 2017 23:04:45 +0000
(
00:04
+0100)
committer
Christopher N. Hesse
<raymanfx@gmail.com>
Sun, 2 Apr 2017 11:15:40 +0000
(13:15 +0200)
Change-Id: I363df278598e3402692424539638f3547c648e26
power/power.c
patch
|
blob
|
blame
|
history
diff --git
a/power/power.c
b/power/power.c
index bcc40f6ca7308eea63dd825bd8eda69c34a5b6c3..6168ea06994a205d5499ca20b05068a50024f169 100644
(file)
--- a/
power/power.c
+++ b/
power/power.c
@@
-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;