mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-16 05:26:07 +00:00
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>
This commit is contained in:
parent
efbc57c0e6
commit
415a249f88
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user