summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/gt1x
diff options
context:
space:
mode:
authorJeffy Chen <jeffy.chen@rock-chips.com>2018-06-15 18:55:03 +0800
committerTao Huang <huangtao@rock-chips.com>2018-06-21 10:56:59 +0800
commitd08b1af4bd793d19bf9711801bd6be8b507d18cf (patch)
tree07bee1c71a3620d60eed5e28d2d070afdb47c087 /drivers/input/touchscreen/gt1x
parent6bca9742c8667ed956ac94a1d9055509b7b3c24e (diff)
input: touchscreen: gt1x: Add missing power on in resume
Add missing power on to pair with the power off in suspend. Change-Id: I676b57dd8ba9aff108a3b57c4350d272d54ca996 Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Diffstat (limited to 'drivers/input/touchscreen/gt1x')
-rw-r--r--drivers/input/touchscreen/gt1x/gt1x_generic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/gt1x/gt1x_generic.c b/drivers/input/touchscreen/gt1x/gt1x_generic.c
index 71b589debc97..fc7aa021a523 100644
--- a/drivers/input/touchscreen/gt1x/gt1x_generic.c
+++ b/drivers/input/touchscreen/gt1x/gt1x_generic.c
@@ -985,6 +985,7 @@ static s32 gt1x_wakeup_sleep(void)
gt1x_irq_disable();
#if GTP_POWER_CTRL_SLEEP /* power manager unit control the procedure */
+ gt1x_power_switch(SWITCH_ON);
gt1x_power_reset();
GTP_INFO("Wakeup by poweron");
return 0;