Commit 80333fd8 authored by John Keeping's avatar John Keeping Committed by Heiko Schocher

rockchip: i2c: use named constant when appropriate

Make it clear that we are using the same value in two adjacent lines.
Signed-off-by: default avatarJohn Keeping <>
Acked-by: default avatarSimon Glass <>
parent 8cbb389b
......@@ -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;
bytes_xferred = bytes_remain_len;
words_xferred = DIV_ROUND_UP(bytes_xferred, 4);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment