From 99238370a2eec5f44d1d559980e9ea00dcfd0b22 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Sun, 20 Sep 2020 16:57:59 +0200 Subject: [PATCH] drivers/lsm303dlhc: remove useless release/acquire sequence --- drivers/lsm303dlhc/lsm303dlhc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/lsm303dlhc/lsm303dlhc.c b/drivers/lsm303dlhc/lsm303dlhc.c index dd16d080a6..8c90a1446b 100644 --- a/drivers/lsm303dlhc/lsm303dlhc.c +++ b/drivers/lsm303dlhc/lsm303dlhc.c @@ -49,8 +49,6 @@ int lsm303dlhc_init(lsm303dlhc_t *dev, const lsm303dlhc_params_t *params) /* reboot sensor */ res = i2c_write_reg(DEV_I2C, DEV_ACC_ADDR, LSM303DLHC_REG_CTRL5_A, LSM303DLHC_REG_CTRL5_A_BOOT, 0); - /* Release the bus for other threads. */ - i2c_release(DEV_I2C); /* configure accelerometer */ /* enable all three axis and set sample rate */ @@ -58,7 +56,6 @@ int lsm303dlhc_init(lsm303dlhc_t *dev, const lsm303dlhc_params_t *params) | LSM303DLHC_CTRL1_A_YEN | LSM303DLHC_CTRL1_A_ZEN | DEV_ACC_RATE); - i2c_acquire(DEV_I2C); res += i2c_write_reg(DEV_I2C, DEV_ACC_ADDR, LSM303DLHC_REG_CTRL1_A, tmp, 0); /* update on read, MSB @ low address, scale and high-resolution */