Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: exynos5: use proper errno for timeout

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

+2 -2
+2 -2
drivers/i2c/busses/i2c-exynos5.c
··· 457 457 goto stop; 458 458 } else if (int_status & HSI2C_INT_TIMEOUT) { 459 459 dev_dbg(i2c->dev, "Accessing device timed out\n"); 460 - i2c->state = -EAGAIN; 460 + i2c->state = -ETIMEDOUT; 461 461 goto stop; 462 462 } 463 463 } else if (int_status & HSI2C_INT_I2C) { ··· 476 476 goto stop; 477 477 } else if (trans_status & HSI2C_TIMEOUT_AUTO) { 478 478 dev_dbg(i2c->dev, "Accessing device timed out\n"); 479 - i2c->state = -EAGAIN; 479 + i2c->state = -ETIMEDOUT; 480 480 goto stop; 481 481 } else if (trans_status & HSI2C_TRANS_DONE) { 482 482 i2c->trans_done = 1;