From 922f4dbf89f254b3be2ad266b8268543dd9a4b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Mi=C5=9B?= Date: Sun, 1 Dec 2024 11:01:25 +0100 Subject: [PATCH] drv: ft8xx: fix logging configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ft8xx driver reported a compile-time error caused by an invalid logging configuration of this module. This patch intorduces FT800-specific logging configuration in Kconfig that is used by the driver. This way the error is fixed. Signed-off-by: Hubert Miś --- drivers/misc/ft8xx/Kconfig | 10 +++++++++- drivers/misc/ft8xx/ft8xx.c | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/misc/ft8xx/Kconfig b/drivers/misc/ft8xx/Kconfig index 1123c188c122..a55ecd43423d 100644 --- a/drivers/misc/ft8xx/Kconfig +++ b/drivers/misc/ft8xx/Kconfig @@ -3,7 +3,7 @@ # Copyright (c) 2020-2021 Hubert Miś # SPDX-License-Identifier: Apache-2.0 -config FT800 +menuconfig FT800 bool "FT800 Embedded Video Engine driver" default y depends on DT_HAS_FTDI_FT800_ENABLED @@ -11,9 +11,17 @@ config FT800 help Enable driver for FT800 controller. +if FT800 + config FT800_INIT_PRIORITY int "FT800 init priority" default 90 depends on FT800 help FT800 driver initialization priority in POST_KERNEL. + +module = FT800 +module-str = FT800 +source "subsys/logging/Kconfig.template.log_config" + +endif # FT800 diff --git a/drivers/misc/ft8xx/ft8xx.c b/drivers/misc/ft8xx/ft8xx.c index 1dcbe581b13e..0e94330a590d 100644 --- a/drivers/misc/ft8xx/ft8xx.c +++ b/drivers/misc/ft8xx/ft8xx.c @@ -23,7 +23,7 @@ #include "ft8xx_drv.h" #include "ft8xx_host_commands.h" -LOG_MODULE_REGISTER(ft8xx, CONFIG_DISPLAY_LOG_LEVEL); +LOG_MODULE_REGISTER(ft8xx, CONFIG_FT800_LOG_LEVEL); #define FT8XX_DLSWAP_FRAME 0x02