Re: [PATCH] Input: ili210x - fix ili251x_read_touch_data() return value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



…
> This fixes touch reporting when there are more than 6 active touches.

Does such information indicate a need for the tag “Fixes”?


…
> +++ b/drivers/input/touchscreen/ili210x.c
> @@ -255,14 +255,15 @@ static int ili251x_read_reg(struct i2c_client *client,
>  static int ili251x_read_touch_data(struct i2c_client *client, u8 *data)
>  {
>  	int error;
> +	int ret;
>
>  	error = ili251x_read_reg_common(client, REG_TOUCHDATA,
>  					data, ILI251X_DATA_SIZE1, 0);
>  	if (!error && data[0] == 2) {
…

I suggest to define the variable “ret” in the shown if branch.

Regards,
Markus





[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux