summaryrefslogtreecommitdiff
path: root/drivers/input/mouse/cyapa_gen6.c
diff options
context:
space:
mode:
authorDudley Du <dudl@cypress.com>2015-07-21 03:09:59 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-07-24 03:34:05 +0300
commit757cae5a6f0ac1c61ce149a066377a15d1ed881f (patch)
tree3c74924b8e411e147153571445fec3ee2a7e7ccc /drivers/input/mouse/cyapa_gen6.c
parent945525ee607471630d07c309e036ae4a53abe37f (diff)
downloadlinux-757cae5a6f0ac1c61ce149a066377a15d1ed881f.tar.xz
Input: cyapa - fully support runtime suspend power management
Fix the the runtime suspend power management not working issue when system starts up and before user touches the trackpad device. TEST=test on Chromebook. Signed-off-by: Dudley Du <dudl@cypress.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/cyapa_gen6.c')
-rw-r--r--drivers/input/mouse/cyapa_gen6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/mouse/cyapa_gen6.c b/drivers/input/mouse/cyapa_gen6.c
index 61f04132eb65..5f191071d44a 100644
--- a/drivers/input/mouse/cyapa_gen6.c
+++ b/drivers/input/mouse/cyapa_gen6.c
@@ -429,7 +429,7 @@ static int cyapa_gen6_deep_sleep(struct cyapa *cyapa, u8 state)
}
static int cyapa_gen6_set_power_mode(struct cyapa *cyapa,
- u8 power_mode, u16 sleep_time)
+ u8 power_mode, u16 sleep_time, bool is_suspend)
{
struct device *dev = &cyapa->client->dev;
struct gen6_interval_setting *interval_setting =
@@ -693,7 +693,7 @@ static int cyapa_gen6_operational_check(struct cyapa *cyapa)
* the device state is required.
*/
error = cyapa_gen6_set_power_mode(cyapa,
- PWR_MODE_FULL_ACTIVE, 0);
+ PWR_MODE_FULL_ACTIVE, 0, false);
if (error)
dev_warn(dev, "%s: failed to set power active mode.\n",
__func__);