commit | 0e5fb33cf7fa7352e9ecf88a834dd5e178f0e80f | [log] [tgz] |
---|---|---|
author | Tetsuyuki Kobayashi <koba@kmckk.co.jp> | Thu Sep 13 19:08:01 2012 +0000 |
committer | Heiko Schocher <hs@denx.de> | Tue Oct 16 05:47:20 2012 +0200 |
tree | c674291f208cfd65e58d627c2e1cad0182942d48 | |
parent | d042d7121b13d98bd403e7b64438ce55cfefd0d9 [diff] |
i2c: sh_i2c.c: check error in i2c_read and i2c_write Before this patch, i2c_{read,write} always returned 0. Check TACK in i2c_raw_{read,write} so that i2c_{read,write} return non-zero when error. Acked-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>