diff options
Diffstat (limited to 'common/i2c_master.c')
-rw-r--r-- | common/i2c_master.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/i2c_master.c b/common/i2c_master.c index bda3561d34..cfc1a9108a 100644 --- a/common/i2c_master.c +++ b/common/i2c_master.c @@ -178,7 +178,7 @@ void i2c_lock(int port, int lock) } else { interrupt_disable(); - i2c_port_active_list &= ~(1 << port); + i2c_port_active_list &= ~BIT(port); /* Once there is no i2c port active, enable sleep bit of i2c. */ if (!i2c_port_active_list) enable_sleep(SLEEP_MASK_I2C_MASTER); |