Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 415a249f authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

Input: rohm_bu21023 - fix handling of retrying firmware update



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

Acked-by: default avatarYoichi Yuasa <yuasa@linux-mips.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent efbc57c0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -725,7 +725,7 @@ static int rohm_ts_load_firmware(struct i2c_client *client,
			break;

		error = -EIO;
	} while (++retry >= FIRMWARE_RETRY_MAX);
	} while (++retry <= FIRMWARE_RETRY_MAX);

out:
	error2 = i2c_smbus_write_byte_data(client, INT_MASK, INT_ALL);