commit | 773003c77fc93369dee8cd3c56712e5b737cd330 | [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 | cece11ca01cdcdf16a7f117f98d04278fae684ee [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>