drivers: display: remove usage of device_pm_control_nop
device_pm_control_nop is now deprecated in favour of NULL. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
374d46c235
commit
6b05c6e06e
|
@ -124,7 +124,7 @@ static const struct display_driver_api dummy_display_api = {
|
||||||
};
|
};
|
||||||
|
|
||||||
DEVICE_DEFINE(dummy_display, CONFIG_DUMMY_DISPLAY_DEV_NAME,
|
DEVICE_DEFINE(dummy_display, CONFIG_DUMMY_DISPLAY_DEV_NAME,
|
||||||
&dummy_display_init, device_pm_control_nop,
|
&dummy_display_init, NULL,
|
||||||
&dummy_display_data, NULL,
|
&dummy_display_data, NULL,
|
||||||
APPLICATION, CONFIG_APPLICATION_INIT_PRIORITY,
|
APPLICATION, CONFIG_APPLICATION_INIT_PRIORITY,
|
||||||
&dummy_display_api);
|
&dummy_display_api);
|
||||||
|
|
|
@ -486,7 +486,7 @@ static const struct display_driver_api ili9xxx_api = {
|
||||||
static struct ili9xxx_data ili9xxx_data_##n; \
|
static struct ili9xxx_data ili9xxx_data_##n; \
|
||||||
\
|
\
|
||||||
DEVICE_DT_DEFINE(INST_DT_ILI9XXX(n, t), ili9xxx_init, \
|
DEVICE_DT_DEFINE(INST_DT_ILI9XXX(n, t), ili9xxx_init, \
|
||||||
device_pm_control_nop, &ili9xxx_data_##n, \
|
NULL, &ili9xxx_data_##n, \
|
||||||
&ili9xxx_config_##n, POST_KERNEL, \
|
&ili9xxx_config_##n, POST_KERNEL, \
|
||||||
CONFIG_APPLICATION_INIT_PRIORITY, &ili9xxx_api);
|
CONFIG_APPLICATION_INIT_PRIORITY, &ili9xxx_api);
|
||||||
|
|
||||||
|
|
|
@ -258,7 +258,7 @@ static struct mcux_elcdif_data mcux_elcdif_data_1;
|
||||||
|
|
||||||
DEVICE_DT_INST_DEFINE(0,
|
DEVICE_DT_INST_DEFINE(0,
|
||||||
&mcux_elcdif_init,
|
&mcux_elcdif_init,
|
||||||
device_pm_control_nop,
|
NULL,
|
||||||
&mcux_elcdif_data_1, &mcux_elcdif_config_1,
|
&mcux_elcdif_data_1, &mcux_elcdif_config_1,
|
||||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||||
&mcux_elcdif_api);
|
&mcux_elcdif_api);
|
||||||
|
|
|
@ -416,7 +416,7 @@ static const struct display_driver_api sdl_display_api = {
|
||||||
};
|
};
|
||||||
|
|
||||||
DEVICE_DEFINE(sdl_display, CONFIG_SDL_DISPLAY_DEV_NAME, &sdl_display_init,
|
DEVICE_DEFINE(sdl_display, CONFIG_SDL_DISPLAY_DEV_NAME, &sdl_display_init,
|
||||||
device_pm_control_nop, &sdl_display_data, NULL, APPLICATION,
|
NULL, &sdl_display_data, NULL, APPLICATION,
|
||||||
CONFIG_APPLICATION_INIT_PRIORITY, &sdl_display_api);
|
CONFIG_APPLICATION_INIT_PRIORITY, &sdl_display_api);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -466,7 +466,7 @@ static struct display_driver_api gd7965_driver_api = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
DEVICE_DT_INST_DEFINE(0, gd7965_init, device_pm_control_nop,
|
DEVICE_DT_INST_DEFINE(0, gd7965_init, NULL,
|
||||||
&gd7965_driver, NULL,
|
&gd7965_driver, NULL,
|
||||||
POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY,
|
POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY,
|
||||||
&gd7965_driver_api);
|
&gd7965_driver_api);
|
||||||
|
|
|
@ -343,6 +343,6 @@ static struct glcd_data grove_lcd_driver = {
|
||||||
* since grove_lcd_driver struct is available, populating with it
|
* since grove_lcd_driver struct is available, populating with it
|
||||||
*/
|
*/
|
||||||
DEVICE_DEFINE(grove_lcd, GROVE_LCD_NAME, glcd_initialize,
|
DEVICE_DEFINE(grove_lcd, GROVE_LCD_NAME, glcd_initialize,
|
||||||
device_pm_control_nop, &grove_lcd_driver, &grove_lcd_config,
|
NULL, &grove_lcd_driver, &grove_lcd_config,
|
||||||
POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY,
|
POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY,
|
||||||
(void *)&grove_lcd_driver);
|
(void *)&grove_lcd_driver);
|
||||||
|
|
|
@ -354,7 +354,7 @@ static struct display_driver_api ls0xx_driver_api = {
|
||||||
.set_orientation = ls0xx_set_orientation,
|
.set_orientation = ls0xx_set_orientation,
|
||||||
};
|
};
|
||||||
|
|
||||||
DEVICE_DT_INST_DEFINE(0, ls0xx_init, device_pm_control_nop,
|
DEVICE_DT_INST_DEFINE(0, ls0xx_init, NULL,
|
||||||
&ls0xx_driver, NULL,
|
&ls0xx_driver, NULL,
|
||||||
POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY,
|
POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY,
|
||||||
&ls0xx_driver_api);
|
&ls0xx_driver_api);
|
||||||
|
|
|
@ -455,7 +455,7 @@ static struct display_driver_api ssd1306_driver_api = {
|
||||||
.set_orientation = ssd1306_set_orientation,
|
.set_orientation = ssd1306_set_orientation,
|
||||||
};
|
};
|
||||||
|
|
||||||
DEVICE_DT_INST_DEFINE(0, ssd1306_init, device_pm_control_nop,
|
DEVICE_DT_INST_DEFINE(0, ssd1306_init, NULL,
|
||||||
&ssd1306_driver, NULL,
|
&ssd1306_driver, NULL,
|
||||||
POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY,
|
POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY,
|
||||||
&ssd1306_driver_api);
|
&ssd1306_driver_api);
|
||||||
|
|
|
@ -717,7 +717,7 @@ static struct display_driver_api ssd16xx_driver_api = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
DEVICE_DT_INST_DEFINE(0, ssd16xx_init, device_pm_control_nop,
|
DEVICE_DT_INST_DEFINE(0, ssd16xx_init, NULL,
|
||||||
&ssd16xx_driver, NULL,
|
&ssd16xx_driver, NULL,
|
||||||
POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY,
|
POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY,
|
||||||
&ssd16xx_driver_api);
|
&ssd16xx_driver_api);
|
||||||
|
|
Loading…
Reference in a new issue