Skip to content

Commit

Permalink
Merge pull request RIOT-OS#20675 from benpicco/drivers-i2c_init
Browse files Browse the repository at this point in the history
drivers: don't call i2c_init()
  • Loading branch information
benpicco authored May 16, 2024
2 parents e9f290c + 85b2dec commit 719663f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions drivers/aip31068/aip31068.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 0 additions & 2 deletions drivers/pca9633/pca9633.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 0 additions & 1 deletion drivers/sdp3x/sdp3x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 719663f

Please sign in to comment.