summaryrefslogtreecommitdiff
path: root/board/sweetberry/gpio.inc
diff options
context:
space:
mode:
authorZhuohao Lee <zhuohao@chromium.org>2018-08-06 14:18:55 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-08-07 01:50:39 -0700
commit7c47fcc96889866ee143e01b56f78b3732657a7f (patch)
tree7e2455270ced9d72e447aabfa6806df1e0b14565 /board/sweetberry/gpio.inc
parentb3ff32c510e8842d9ee043d9c9b09a1efb60f9db (diff)
downloadchrome-ec-7c47fcc96889866ee143e01b56f78b3732657a7f.tar.gz
i2c: add i2c_lock before and after calling i2c_xfer
According to the include/i2c.h, we need to call i2c_lock before and after calling i2c_xfer. This patch adds the lock to protect the i2c data transmission. BUG=none BRANCH=master TEST=make buildall -j Change-Id: If125333902105c35ca332c154bbb8012c363d1bf Signed-off-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1163543 Reviewed-by: Nick Sanders <nsanders@chromium.org>
Diffstat (limited to 'board/sweetberry/gpio.inc')
0 files changed, 0 insertions, 0 deletions