summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2018-04-04 05:07:32 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-04-04 12:05:51 -0700
commita26f7241f56bcf44611d04fca91a9d2101f1ae4f (patch)
treeaec3455957614082158fe165dd64d229db915872
parent82a357a385f9eee75bfbca9911e404d54b0c3217 (diff)
downloadchrome-ec-a26f7241f56bcf44611d04fca91a9d2101f1ae4f.tar.gz
i2c: Use the correct config variable for i2c board callback
Fix typo in i2c_master.c to use CONFIG_I2C_XFER_BOARD_CALLBACK instead of CONFIG_I2C_XFER_CALLBACK. BUG=b:73147310 BRANCH=None TEST=None Change-Id: I4a8179df48940e6d4347f9d76908a0fc4d3ea692 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://chromium-review.googlesource.com/995572 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
-rw-r--r--common/i2c_master.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/i2c_master.c b/common/i2c_master.c
index f9ac88ea45..1b520ecc9a 100644
--- a/common/i2c_master.c
+++ b/common/i2c_master.c
@@ -56,14 +56,14 @@ static int chip_i2c_xfer_with_notify(int port, int slave_addr,
{
int ret;
-#ifdef CONFIG_I2C_XFER_CALLBACK
+#ifdef CONFIG_I2C_XFER_BOARD_CALLBACK
i2c_start_xfer_notify(port, slave_addr);
#endif
ret = chip_i2c_xfer(port, slave_addr, out, out_size, in, in_size,
flags);
-#ifdef CONFIG_I2C_XFER_CALLBACK
+#ifdef CONFIG_I2C_XFER_BOARD_CALLBACK
i2c_end_xfer_notify(port, slave_addr);
#endif