summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/i2c_arbitration.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/i2c_arbitration.c b/common/i2c_arbitration.c
index 70b4b81dcd..128ef16287 100644
--- a/common/i2c_arbitration.c
+++ b/common/i2c_arbitration.c
@@ -31,7 +31,7 @@ int i2c_claim(int port)
{
timestamp_t start;
- if (port != I2C_PORT_HOST)
+ if (port != I2C_PORT_MASTER)
return EC_SUCCESS;
/* If AP is off, we have the bus */
@@ -79,7 +79,7 @@ int i2c_claim(int port)
void i2c_release(int port)
{
- if (port == I2C_PORT_HOST) {
+ if (port == I2C_PORT_MASTER) {
/* Release our claim */
gpio_set_level(GPIO_EC_CLAIM, 1);
usleep(BUS_SLEW_DELAY_US);