Skip to content

Commit

Permalink
drivers: display: stm32_ltdc: Use local device variable
Browse files Browse the repository at this point in the history
Similar to `stm32_ltdc_display_blanking_off()`, use local device variable
instead of accessing the config's structure member again.

Signed-off-by: Haiyue Wang <[email protected]>
  • Loading branch information
haiyuewa authored and kartben committed Dec 2, 2024
1 parent ab29e6a commit 6f26952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/display/display_stm32_ltdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ static int stm32_ltdc_display_blanking_on(const struct device *dev)
return -ENOSYS;
}

if (!device_is_ready(config->display_controller)) {
if (!device_is_ready(display_dev)) {
LOG_ERR("Display device %s not ready", display_dev->name);
return -ENODEV;
}
Expand Down

0 comments on commit 6f26952

Please sign in to comment.