diff mbox series

[2/2] Input: goodix - Ignore spurious interrupts

Message ID 20200310131705.13516-2-dmastykin@astralinux.ru (mailing list archive)
State New, archived
Headers show
Series [1/2] Input: goodix - Add support for touch-keys and keycode mapping | expand

Commit Message

Dmitry Mastykin March 10, 2020, 1:17 p.m. UTC
Signed-off-by: Dmitry Mastykin <dmastykin@astralinux.ru>
---
 drivers/input/touchscreen/goodix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Hans de Goede March 10, 2020, 2:55 p.m. UTC | #1
Hi,

On 3/10/20 2:17 PM, Dmitry Mastykin wrote:

This patch completely lacks a "body" for the commit message,
please write a paragraph about why you are making this change
here.

Regards,

Hans


> Signed-off-by: Dmitry Mastykin <dmastykin@astralinux.ru>
> ---
>   drivers/input/touchscreen/goodix.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c
> index 6a7ecc6..7f8ad6d 100644
> --- a/drivers/input/touchscreen/goodix.c
> +++ b/drivers/input/touchscreen/goodix.c
> @@ -329,7 +329,7 @@ static int goodix_ts_read_input_report(struct goodix_ts_data *ts, u8 *data)
>   	 * The Goodix panel will send spurious interrupts after a
>   	 * 'finger up' event, which will always cause a timeout.
>   	 */
> -	return 0;
> +	return -ENOMSG;
>   }
>   
>   static void goodix_ts_report_touch_8b(struct goodix_ts_data *ts, u8 *coor_data)
>
diff mbox series

Patch

diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c
index 6a7ecc6..7f8ad6d 100644
--- a/drivers/input/touchscreen/goodix.c
+++ b/drivers/input/touchscreen/goodix.c
@@ -329,7 +329,7 @@  static int goodix_ts_read_input_report(struct goodix_ts_data *ts, u8 *data)
 	 * The Goodix panel will send spurious interrupts after a
 	 * 'finger up' event, which will always cause a timeout.
 	 */
-	return 0;
+	return -ENOMSG;
 }
 
 static void goodix_ts_report_touch_8b(struct goodix_ts_data *ts, u8 *coor_data)