drivers: gpio: Convert drivers to new DT device macros
Convert gpio drivers to use new DT variants of the DEVICE APIs. DEVICE_AND_API_INIT -> DEVICE_DT_DEFINE DEVICE_GET -> DEVICE_DT_GET DEVICE_DECLARE -> DEVICE_DT_INST_DECLARE etc.. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
4cfd2a1943
commit
569155701c
27 changed files with 136 additions and 116 deletions
|
@ -772,9 +772,9 @@ static struct gpio_pca95xx_drv_data gpio_pca95xx_##inst##_drvdata = { \
|
|||
)) \
|
||||
}; \
|
||||
\
|
||||
DEVICE_AND_API_INIT(gpio_pca95xx_##inst, \
|
||||
DT_INST_LABEL(inst), \
|
||||
DEVICE_DT_INST_DEFINE(inst, \
|
||||
gpio_pca95xx_init, \
|
||||
device_pm_control_nop, \
|
||||
&gpio_pca95xx_##inst##_drvdata, \
|
||||
&gpio_pca95xx_##inst##_cfg, \
|
||||
POST_KERNEL, CONFIG_GPIO_PCA95XX_INIT_PRIORITY, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue