diff options
Diffstat (limited to 'zephyr/test/drivers/src/stm_mems_common.c')
-rw-r--r-- | zephyr/test/drivers/src/stm_mems_common.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/zephyr/test/drivers/src/stm_mems_common.c b/zephyr/test/drivers/src/stm_mems_common.c index 76c65a52c9..3085007f4d 100644 --- a/zephyr/test/drivers/src/stm_mems_common.c +++ b/zephyr/test/drivers/src/stm_mems_common.c @@ -21,17 +21,6 @@ static void setup(void) i2c_mock_reset(MOCK_EMUL); } -static const struct device *get_i2c_dev(void) -{ - const struct device *i2c_dev = - device_get_binding(DT_LABEL(DT_NODELABEL(i2c0))); - - zassert_not_null(i2c_dev, "Failed to find 'i2c0' node"); - zassert_equal(i2c_dev, i2c_get_device_for_port(I2C_PORT_POWER), - "i2c0 node doesn't match I2C_PORT_POWER"); - return i2c_dev; -} - static int mock_read_fn(struct i2c_emul *emul, int reg, uint8_t *val, int bytes, void *data) { |