Revert "sanders: power: add back support for dt2wake"

This reverts commit 2a1118fee8c69cb2627400d8350d0fe033e4cc4d.

Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
This commit is contained in:
ronaxdevil
2019-10-21 17:59:27 +05:30
parent 4482c4464e
commit cfd64c3871
4 changed files with 0 additions and 20 deletions

View File

@@ -18,10 +18,6 @@ ifeq ($(TARGET_USES_INTERACTION_BOOST),true)
LOCAL_CFLAGS += -DINTERACTION_BOOST
endif
ifneq ($(TARGET_TAP_TO_WAKE_NODE),)
LOCAL_CFLAGS += -DTAP_TO_WAKE_NODE=\"$(TARGET_TAP_TO_WAKE_NODE)\"
endif
LOCAL_MODULE := android.hardware.power@1.2-service
LOCAL_INIT_RC := android.hardware.power@1.2-service.rc
LOCAL_MODULE_TAGS := optional

View File

@@ -65,7 +65,6 @@ Return<void> Power::powerHint(PowerHint_1_0 hint, int32_t data) {
}
Return<void> Power::setFeature(Feature feature, bool activate) {
set_feature(static_cast<feature_t>(feature), activate ? 1 : 0);
return Void();
}

View File

@@ -133,17 +133,3 @@ void set_interactive(int on)
ALOGI("Got set_interactive hint");
}
void set_feature(feature_t feature, int state)
{
switch (feature) {
#ifdef TAP_TO_WAKE_NODE
case POWER_FEATURE_DOUBLE_TAP_TO_WAKE:
sysfs_write(TAP_TO_WAKE_NODE, state ? "1" : "0");
break;
#endif
default:
break;
}
}

View File

@@ -61,7 +61,6 @@ enum CPU_GOV_CHECK {
void power_init(void);
void power_hint(power_hint_t hint, void *data);
void set_interactive(int on);
void set_feature(feature_t feature, int state);
#ifdef __cplusplus
}