device: use DEVICE_INIT everwhere
This is the last step before obsoleting DEVICE_DEFINE() and DEVICE_INIT_CONFIG_DEFINE(). Change-Id: Ica4257662969048083ab9839872b4b437b8b351b Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
ef33dc32e5
commit
d340d4cb3f
57 changed files with 270 additions and 415 deletions
|
@ -617,13 +617,11 @@ static struct gpio_pcal9535a_drv_data gpio_pcal9535a_0_drvdata = {
|
|||
.reg_cache.pud_sel = { .all = 0xFFFF },
|
||||
};
|
||||
|
||||
DEVICE_INIT_CONFIG_DEFINE(gpio_pcal9535a_0,
|
||||
CONFIG_GPIO_PCAL9535A_0_DEV_NAME,
|
||||
gpio_pcal9535a_init, &gpio_pcal9535a_0_cfg);
|
||||
|
||||
/* This has to init after I2C master */
|
||||
DEVICE_DEFINE(gpio_pcal9535a_0, &gpio_pcal9535a_0_drvdata, SECONDARY,
|
||||
CONFIG_GPIO_PCAL9535A_INIT_PRIORITY);
|
||||
DEVICE_INIT(gpio_pcal9535a_0, CONFIG_GPIO_PCAL9535A_0_DEV_NAME,
|
||||
gpio_pcal9535a_init,
|
||||
&gpio_pcal9535a_0_drvdata, &gpio_pcal9535a_0_cfg,
|
||||
SECONDARY, CONFIG_GPIO_PCAL9535A_INIT_PRIORITY);
|
||||
|
||||
#endif /* CONFIG_GPIO_PCAL9535A_0 */
|
||||
|
||||
|
@ -646,13 +644,11 @@ static struct gpio_pcal9535a_drv_data gpio_pcal9535a_1_drvdata = {
|
|||
.reg_cache.pud_sel = { .all = 0xFFFF },
|
||||
};
|
||||
|
||||
DEVICE_INIT_CONFIG_DEFINE(gpio_pcal9535a_1,
|
||||
CONFIG_GPIO_PCAL9535A_1_DEV_NAME,
|
||||
gpio_pcal9535a_init, &gpio_pcal9535a_1_cfg);
|
||||
|
||||
/* This has to init after I2C master */
|
||||
DEVICE_DEFINE(gpio_pcal9535a_1, &gpio_pcal9535a_1_drvdata, SECONDARY,
|
||||
CONFIG_GPIO_PCAL9535A_INIT_PRIORITY);
|
||||
DEVICE_INIT(gpio_pcal9535a_1, CONFIG_GPIO_PCAL9535A_1_DEV_NAME,
|
||||
gpio_pcal9535a_init,
|
||||
&gpio_pcal9535a_1_drvdata, &gpio_pcal9535a_1_cfg,
|
||||
SECONDARY, CONFIG_GPIO_PCAL9535A_INIT_PRIORITY);
|
||||
|
||||
#endif /* CONFIG_GPIO_PCAL9535A_1 */
|
||||
|
||||
|
@ -675,13 +671,11 @@ static struct gpio_pcal9535a_drv_data gpio_pcal9535a_2_drvdata = {
|
|||
.reg_cache.pud_sel = { .all = 0xFFFF },
|
||||
};
|
||||
|
||||
DEVICE_INIT_CONFIG_DEFINE(gpio_pcal9535a_2,
|
||||
CONFIG_GPIO_PCAL9535A_2_DEV_NAME,
|
||||
gpio_pcal9535a_init, &gpio_pcal9535a_2_cfg);
|
||||
|
||||
/* This has to init after I2C master */
|
||||
DEVICE_DEFINE(gpio_pcal9535a_2, &gpio_pcal9535a_2_drvdata, SECONDARY,
|
||||
CONFIG_GPIO_PCAL9535A_INIT_PRIORITY);
|
||||
DEVICE_INIT(gpio_pcal9535a_2, CONFIG_GPIO_PCAL9535A_2_DEV_NAME,
|
||||
gpio_pcal9535a_init,
|
||||
&gpio_pcal9535a_2_drvdata, &gpio_pcal9535a_2_cfg,
|
||||
SECONDARY, CONFIG_GPIO_PCAL9535A_INIT_PRIORITY);
|
||||
|
||||
#endif /* CONFIG_GPIO_PCAL9535A_2 */
|
||||
|
||||
|
@ -704,12 +698,11 @@ static struct gpio_pcal9535a_drv_data gpio_pcal9535a_3_drvdata = {
|
|||
.reg_cache.pud_sel = { .all = 0xFFFF },
|
||||
};
|
||||
|
||||
DEVICE_INIT_CONFIG_DEFINE(gpio_pcal9535a_3,
|
||||
CONFIG_GPIO_PCAL9535A_3_DEV_NAME,
|
||||
gpio_pcal9535a_init, &gpio_pcal9535a_3_cfg);
|
||||
|
||||
/* This has to init after I2C master */
|
||||
DEVICE_DEFINE(gpio_pcal9535a_3, &gpio_pcal9535a_3_drvdata, SECONDARY,
|
||||
CONFIG_GPIO_PCAL9535A_INIT_PRIORITY);
|
||||
DEVICE_INIT(gpio_pcal9535a_3, CONFIG_GPIO_PCAL9535A_3_DEV_NAME,
|
||||
gpio_pcal9535a_init,
|
||||
&gpio_pcal9535a_3_drvdata, &gpio_pcal9535a_3_cfg,
|
||||
SECONDARY, CONFIG_GPIO_PCAL9535A_INIT_PRIORITY);
|
||||
|
||||
|
||||
#endif /* CONFIG_GPIO_PCAL9535A_3 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue