Skip to content

Commit 6f26952

Browse files
haiyuewakartben
authored andcommitted
drivers: display: stm32_ltdc: Use local device variable
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]>
1 parent ab29e6a commit 6f26952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/display/display_stm32_ltdc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ static int stm32_ltdc_display_blanking_on(const struct device *dev)
286286
return -ENOSYS;
287287
}
288288

289-
if (!device_is_ready(config->display_controller)) {
289+
if (!device_is_ready(display_dev)) {
290290
LOG_ERR("Display device %s not ready", display_dev->name);
291291
return -ENODEV;
292292
}

0 commit comments

Comments
 (0)