Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions drivers/display/display_stm32_ltdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,10 @@ static int stm32_ltdc_display_blanking_off(const struct device *dev)
const struct display_stm32_ltdc_config *config = dev->config;
const struct device *display_dev = config->display_controller;

/* Panel controller's phandle is not passed to LTDC in devicetree */
if (display_dev == NULL) {
return 0;
LOG_ERR("There is no panel controller to forward blanking_off call to");
return -ENOSYS;
}

if (!device_is_ready(display_dev)) {
Expand All @@ -271,8 +273,10 @@ static int stm32_ltdc_display_blanking_on(const struct device *dev)
const struct display_stm32_ltdc_config *config = dev->config;
const struct device *display_dev = config->display_controller;

/* Panel controller's phandle is not passed to LTDC in devicetree */
if (display_dev == NULL) {
return 0;
LOG_ERR("There is no panel controller to forward blanking_on call to");
return -ENOSYS;
}

if (!device_is_ready(config->display_controller)) {
Expand Down
Loading