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 <haiyuewa@163.com>
This commit is contained in:
parent
ab29e6a057
commit
6f26952828
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue