From dd56b3bb71bc089f9ed6a6430ec1370b7852df36 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Thu, 22 Aug 2019 11:57:29 +0200 Subject: [PATCH] cpu/sam0_common: Updated i2c_release() --- cpu/sam0_common/periph/i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/sam0_common/periph/i2c.c b/cpu/sam0_common/periph/i2c.c index e7c62470b1..a0f4cefe53 100644 --- a/cpu/sam0_common/periph/i2c.c +++ b/cpu/sam0_common/periph/i2c.c @@ -22,6 +22,7 @@ * @} */ +#include #include #include @@ -164,11 +165,10 @@ int i2c_acquire(i2c_t dev) return 0; } -int i2c_release(i2c_t dev) +void i2c_release(i2c_t dev) { assert(dev < I2C_NUMOF); mutex_unlock(&locks[dev]); - return 0; } int i2c_read_bytes(i2c_t dev, uint16_t addr,