dts: Convert from DT_<COMPAT>_<INSTANCE>_<PROP> to DT_INST...
Change code from using now deprecated DT_<COMPAT>_<INSTANCE>_<PROP> defines to using DT_INST_<INSTANCE>_<COMPAT>_<PROP>. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
01e54a5472
commit
a2693975d7
206 changed files with 1480 additions and 1479 deletions
|
@ -345,17 +345,17 @@ static int lsm9ds0_gyro_init(struct device *dev)
|
|||
}
|
||||
|
||||
static const struct lsm9ds0_gyro_config lsm9ds0_gyro_config = {
|
||||
.i2c_master_dev_name = DT_LSM9DS0_GYRO_I2C_MASTER_DEV_NAME,
|
||||
.i2c_slave_addr = DT_LSM9DS0_GYRO_I2C_ADDRESS,
|
||||
.i2c_master_dev_name = DT_INST_0_ST_LSM9DS0_GYRO_BUS_NAME,
|
||||
.i2c_slave_addr = DT_INST_0_ST_LSM9DS0_GYRO_BASE_ADDRESS,
|
||||
#if defined(CONFIG_LSM9DS0_GYRO_TRIGGER_DRDY)
|
||||
.gpio_drdy_dev_name = DT_LSM9DS0_GYRO_INT_GPIO_DEV_NAME,
|
||||
.gpio_drdy_int_pin = DT_LSM9DS0_GYRO_INT_GPIO_PIN,
|
||||
.gpio_drdy_dev_name = DT_INST_0_ST_LSM9DS0_GYRO_IRQ_GPIOS_CONTROLLER,
|
||||
.gpio_drdy_int_pin = DT_INST_0_ST_LSM9DS0_GYRO_IRQ_GPIOS_PIN,
|
||||
#endif
|
||||
};
|
||||
|
||||
static struct lsm9ds0_gyro_data lsm9ds0_gyro_data;
|
||||
|
||||
DEVICE_AND_API_INIT(lsm9ds0_gyro, DT_LSM9DS0_GYRO_DEV_NAME,
|
||||
DEVICE_AND_API_INIT(lsm9ds0_gyro, DT_INST_0_ST_LSM9DS0_GYRO_LABEL,
|
||||
lsm9ds0_gyro_init, &lsm9ds0_gyro_data, &lsm9ds0_gyro_config,
|
||||
POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY,
|
||||
&lsm9ds0_gyro_api_funcs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue