mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-27 16:01:27 +00:00
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 <john@metanate.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
8cbb389bb3
commit
80333fd85c
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ static int rk_i2c_write(struct rk_i2c *i2c, uchar chip, uint reg, uint r_len,
|
||||||
|
|
||||||
while (bytes_remain_len) {
|
while (bytes_remain_len) {
|
||||||
if (bytes_remain_len > RK_I2C_FIFO_SIZE)
|
if (bytes_remain_len > RK_I2C_FIFO_SIZE)
|
||||||
bytes_xferred = 32;
|
bytes_xferred = RK_I2C_FIFO_SIZE;
|
||||||
else
|
else
|
||||||
bytes_xferred = bytes_remain_len;
|
bytes_xferred = bytes_remain_len;
|
||||||
words_xferred = DIV_ROUND_UP(bytes_xferred, 4);
|
words_xferred = DIV_ROUND_UP(bytes_xferred, 4);
|
||||||
|
|
Loading…
Add table
Reference in a new issue