Skip to content

Commit 6b05c6e

Browse files
gmarullnashif
authored andcommitted
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 <[email protected]>
1 parent 374d46c commit 6b05c6e

9 files changed

+9
-9
lines changed

drivers/display/display_dummy.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static const struct display_driver_api dummy_display_api = {
124124
};
125125

126126
DEVICE_DEFINE(dummy_display, CONFIG_DUMMY_DISPLAY_DEV_NAME,
127-
&dummy_display_init, device_pm_control_nop,
127+
&dummy_display_init, NULL,
128128
&dummy_display_data, NULL,
129129
APPLICATION, CONFIG_APPLICATION_INIT_PRIORITY,
130130
&dummy_display_api);

drivers/display/display_ili9xxx.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ static const struct display_driver_api ili9xxx_api = {
486486
static struct ili9xxx_data ili9xxx_data_##n; \
487487
\
488488
DEVICE_DT_DEFINE(INST_DT_ILI9XXX(n, t), ili9xxx_init, \
489-
device_pm_control_nop, &ili9xxx_data_##n, \
489+
NULL, &ili9xxx_data_##n, \
490490
&ili9xxx_config_##n, POST_KERNEL, \
491491
CONFIG_APPLICATION_INIT_PRIORITY, &ili9xxx_api);
492492

drivers/display/display_mcux_elcdif.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ static struct mcux_elcdif_data mcux_elcdif_data_1;
258258

259259
DEVICE_DT_INST_DEFINE(0,
260260
&mcux_elcdif_init,
261-
device_pm_control_nop,
261+
NULL,
262262
&mcux_elcdif_data_1, &mcux_elcdif_config_1,
263263
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
264264
&mcux_elcdif_api);

drivers/display/display_sdl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ static const struct display_driver_api sdl_display_api = {
416416
};
417417

418418
DEVICE_DEFINE(sdl_display, CONFIG_SDL_DISPLAY_DEV_NAME, &sdl_display_init,
419-
device_pm_control_nop, &sdl_display_data, NULL, APPLICATION,
419+
NULL, &sdl_display_data, NULL, APPLICATION,
420420
CONFIG_APPLICATION_INIT_PRIORITY, &sdl_display_api);
421421

422422

drivers/display/gd7965.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ static struct display_driver_api gd7965_driver_api = {
466466
};
467467

468468

469-
DEVICE_DT_INST_DEFINE(0, gd7965_init, device_pm_control_nop,
469+
DEVICE_DT_INST_DEFINE(0, gd7965_init, NULL,
470470
&gd7965_driver, NULL,
471471
POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY,
472472
&gd7965_driver_api);

drivers/display/grove_lcd_rgb.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,6 @@ static struct glcd_data grove_lcd_driver = {
343343
* since grove_lcd_driver struct is available, populating with it
344344
*/
345345
DEVICE_DEFINE(grove_lcd, GROVE_LCD_NAME, glcd_initialize,
346-
device_pm_control_nop, &grove_lcd_driver, &grove_lcd_config,
346+
NULL, &grove_lcd_driver, &grove_lcd_config,
347347
POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY,
348348
(void *)&grove_lcd_driver);

drivers/display/ls0xx.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ static struct display_driver_api ls0xx_driver_api = {
354354
.set_orientation = ls0xx_set_orientation,
355355
};
356356

357-
DEVICE_DT_INST_DEFINE(0, ls0xx_init, device_pm_control_nop,
357+
DEVICE_DT_INST_DEFINE(0, ls0xx_init, NULL,
358358
&ls0xx_driver, NULL,
359359
POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY,
360360
&ls0xx_driver_api);

drivers/display/ssd1306.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ static struct display_driver_api ssd1306_driver_api = {
455455
.set_orientation = ssd1306_set_orientation,
456456
};
457457

458-
DEVICE_DT_INST_DEFINE(0, ssd1306_init, device_pm_control_nop,
458+
DEVICE_DT_INST_DEFINE(0, ssd1306_init, NULL,
459459
&ssd1306_driver, NULL,
460460
POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY,
461461
&ssd1306_driver_api);

drivers/display/ssd16xx.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ static struct display_driver_api ssd16xx_driver_api = {
717717
};
718718

719719

720-
DEVICE_DT_INST_DEFINE(0, ssd16xx_init, device_pm_control_nop,
720+
DEVICE_DT_INST_DEFINE(0, ssd16xx_init, NULL,
721721
&ssd16xx_driver, NULL,
722722
POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY,
723723
&ssd16xx_driver_api);

0 commit comments

Comments
 (0)