i2c: sh_mobile: improve error handling
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 2 May 2014 19:15:08 +0000 (21:15 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 22 May 2014 08:09:22 +0000 (10:09 +0200)
commit5a72b25e7896e6358b62b590ce5b3a457516ae40
tree5ae28e2f484605b1bb6b9634755afd43527527c6
parenta78f6a4140f95cbedc0b28c4c883e8aa9ba044f1
i2c: sh_mobile: improve error handling

Use standard i2c error codes for i2c failures. Also, don't print
something on timeout since it happens regularly with i2c. Simplify some,
logic, too.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-sh_mobile.c