drivers: sensor: Convert drivers to new DT device macros
Convert sensor drivers from: DEVICE_AND_API_INIT -> DEVICE_DT_INST_DEFINE DEVICE_GET -> DEVICE_DT_INST_GET DEVICE_DECLARE -> DEVICE_DT_INST_DECLARE etc.. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
b3939b651e
commit
5f605fd5ab
76 changed files with 101 additions and 101 deletions
|
@ -832,6 +832,6 @@ static int lsm6dso_init(const struct device *dev)
|
|||
|
||||
static struct lsm6dso_data lsm6dso_data;
|
||||
|
||||
DEVICE_AND_API_INIT(lsm6dso, DT_INST_LABEL(0), lsm6dso_init,
|
||||
DEVICE_DT_INST_DEFINE(0, lsm6dso_init, device_pm_control_nop,
|
||||
&lsm6dso_data, &lsm6dso_config, POST_KERNEL,
|
||||
CONFIG_SENSOR_INIT_PRIORITY, &lsm6dso_api_funcs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue