From 85b2decafafdf163ccbadf498a6badb28f66e86d Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Thu, 16 May 2024 14:55:30 +0200 Subject: [PATCH] drivers: don't call i2c_init() This is already called by periph_init() --- drivers/aip31068/aip31068.c | 2 -- drivers/pca9633/pca9633.c | 2 -- drivers/sdp3x/sdp3x.c | 1 - 3 files changed, 5 deletions(-) diff --git a/drivers/aip31068/aip31068.c b/drivers/aip31068/aip31068.c index a31e63c75e..197bdba7bf 100644 --- a/drivers/aip31068/aip31068.c +++ b/drivers/aip31068/aip31068.c @@ -109,8 +109,6 @@ int aip31068_init(aip31068_t *dev, const aip31068_params_t *params) dev->_curr_display_control = 0; dev->_curr_entry_mode_set = 0; - i2c_init(dev->params.i2c_dev); - uint8_t _function_set = 0; /* configure bit mode */ diff --git a/drivers/pca9633/pca9633.c b/drivers/pca9633/pca9633.c index a53fc70e25..1e94b2b53c 100644 --- a/drivers/pca9633/pca9633.c +++ b/drivers/pca9633/pca9633.c @@ -66,8 +66,6 @@ int pca9633_init(pca9633_t *dev, const pca9633_params_t *params) dev->params = *params; - i2c_init(dev->params.i2c_dev); - int rc = _write_reg(dev, PCA9633_REG_MODE1, 0x0); _write_reg(dev, PCA9633_REG_MODE2, 0x0); diff --git a/drivers/sdp3x/sdp3x.c b/drivers/sdp3x/sdp3x.c index 30a290d37e..fc597cfd80 100644 --- a/drivers/sdp3x/sdp3x.c +++ b/drivers/sdp3x/sdp3x.c @@ -55,7 +55,6 @@ int sdp3x_init(sdp3x_t *dev, const sdp3x_params_t *params) dev->params = *params; dev->continuous_measurement = false; - i2c_init(DEV_I2C); sdp3x_soft_reset(dev); /* try to read product number to check if sensor is connected and working */