i2c: sh_mobile: improve error handling
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 2 May 2014 19:15:08 +0000 (21:15 +0200)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:22:41 +0000 (09:22 +0900)
commita8822c48d75eb8855278ce26f34cfe6ffaf7ee3a
tree1a82f618cb80d925e17d273dca9224a7bb2f49c5
parentdcebf987f0c74d3a53654aaa28019b5f789919e4
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>
(cherry picked from commit 5a72b25e7896e6358b62b590ce5b3a457516ae40)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/i2c/busses/i2c-sh_mobile.c