mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
Merge pull request #20675 from benpicco/drivers-i2c_init
drivers: don't call i2c_init()
This commit is contained in:
commit
719663f89c
@ -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 */
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user