diff options
| author | John Keeping <[email protected]> | 2016-08-18 20:08:40 +0100 |
|---|---|---|
| committer | Heiko Schocher <[email protected]> | 2016-09-13 06:57:05 +0200 |
| commit | 80333fd85c23daa235500ecf675f36efad34851b (patch) | |
| tree | 1f08f9bdc2245ad061702397a23b96c1cdc4933d /drivers | |
| parent | 8cbb389bb3da80cbf8911f8386cbff92c6a78afe (diff) | |
rockchip: i2c: use named constant when appropriate
Make it clear that we are using the same value in two adjacent lines.
Signed-off-by: John Keeping <[email protected]>
Acked-by: Simon Glass <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/i2c/rk_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/rk_i2c.c b/drivers/i2c/rk_i2c.c index 63b141838b6..2597970bb00 100644 --- a/drivers/i2c/rk_i2c.c +++ b/drivers/i2c/rk_i2c.c @@ -258,7 +258,7 @@ static int rk_i2c_write(struct rk_i2c *i2c, uchar chip, uint reg, uint r_len, while (bytes_remain_len) { if (bytes_remain_len > RK_I2C_FIFO_SIZE) - bytes_xferred = 32; + bytes_xferred = RK_I2C_FIFO_SIZE; else bytes_xferred = bytes_remain_len; words_xferred = DIV_ROUND_UP(bytes_xferred, 4); |
