Skip to content
Snippets Groups Projects
Commit 0e5fb33c authored by Tetsuyuki Kobayashi's avatar Tetsuyuki Kobayashi Committed by Heiko Schocher
Browse files

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: default avatarNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: default avatarTetsuyuki Kobayashi <koba@kmckk.co.jp>
parent d042d712
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment