Quellcode durchsuchen

Input: rohm_bu21023 - fix handling of retrying firmware update

Because of the wrong condition we'd never retry firmware update.

Acked-by: Yoichi Yuasa <yuasa@linux-mips.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Dmitry Torokhov vor 10 Jahren
Ursprung
Commit
415a249f88
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      drivers/input/touchscreen/rohm_bu21023.c

+ 1 - 1
drivers/input/touchscreen/rohm_bu21023.c

@@ -725,7 +725,7 @@ static int rohm_ts_load_firmware(struct i2c_client *client,
 			break;
 			break;
 
 
 		error = -EIO;
 		error = -EIO;
-	} while (++retry >= FIRMWARE_RETRY_MAX);
+	} while (++retry <= FIRMWARE_RETRY_MAX);
 
 
 out:
 out:
 	error2 = i2c_smbus_write_byte_data(client, INT_MASK, INT_ALL);
 	error2 = i2c_smbus_write_byte_data(client, INT_MASK, INT_ALL);