diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-01-06 17:44:02 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-01-07 12:57:21 -0500 |
commit | 415a249f88fd263bed0f7cca86ecde8c57aba9dc (patch) | |
tree | 321960dd5044eecb1fa08ca7b9be9a50c432b04e | |
parent | efbc57c0e6a92083fce03927736f5d389182935b (diff) |
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>
-rw-r--r-- | drivers/input/touchscreen/rohm_bu21023.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/rohm_bu21023.c b/drivers/input/touchscreen/rohm_bu21023.c index ba6024f93469..611156a2ef80 100644 --- a/drivers/input/touchscreen/rohm_bu21023.c +++ b/drivers/input/touchscreen/rohm_bu21023.c | |||
@@ -725,7 +725,7 @@ static int rohm_ts_load_firmware(struct i2c_client *client, | |||
725 | break; | 725 | break; |
726 | 726 | ||
727 | error = -EIO; | 727 | error = -EIO; |
728 | } while (++retry >= FIRMWARE_RETRY_MAX); | 728 | } while (++retry <= FIRMWARE_RETRY_MAX); |
729 | 729 | ||
730 | out: | 730 | out: |
731 | error2 = i2c_smbus_write_byte_data(client, INT_MASK, INT_ALL); | 731 | error2 = i2c_smbus_write_byte_data(client, INT_MASK, INT_ALL); |