From: Huang, Tao Date: Mon, 4 May 2015 12:59:30 +0000 (+0800) Subject: input: gt9xx: fix compilation warning X-Git-Tag: firefly_0821_release~4158^2~130 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=08fc3fd8e7c1987390abd311dd89dea4b78b0ebc;p=firefly-linux-kernel-4.4.55.git input: gt9xx: fix compilation warning Signed-off-by: Huang, Tao --- diff --git a/drivers/input/touchscreen/gt9xx/gt9xx.c b/drivers/input/touchscreen/gt9xx/gt9xx.c index e6b2a2d93e06..c54055f11f5e 100644 --- a/drivers/input/touchscreen/gt9xx/gt9xx.c +++ b/drivers/input/touchscreen/gt9xx/gt9xx.c @@ -1896,7 +1896,7 @@ Input: Output: None. *******************************************************/ -static void goodix_ts_early_suspend(struct tp_device *tp_d) +static int goodix_ts_early_suspend(struct tp_device *tp_d) { struct goodix_ts_data *ts; s8 ret = -1; @@ -1930,6 +1930,8 @@ static void goodix_ts_early_suspend(struct tp_device *tp_d) // to avoid waking up while not sleeping // delay 48 + 10ms to ensure reliability msleep(58); + + return 0; } /******************************************************* @@ -1940,7 +1942,7 @@ Input: Output: None. *******************************************************/ -static void goodix_ts_early_resume(struct tp_device *tp_d) +static int goodix_ts_early_resume(struct tp_device *tp_d) { struct goodix_ts_data *ts; s8 ret = -1; @@ -1983,6 +1985,8 @@ static void goodix_ts_early_resume(struct tp_device *tp_d) #if GTP_ESD_PROTECT gtp_esd_switch(ts->client, SWITCH_ON); #endif + + return 0; } /*******************************************************