Skip to content

Commit

Permalink
drv: ft8xx: fix logging configuration
Browse files Browse the repository at this point in the history
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ś <hubert.mis@gmail.com>
  • Loading branch information
hubertmis committed Dec 1, 2024
1 parent baa49f6 commit 922f4db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion drivers/misc/ft8xx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,25 @@
# Copyright (c) 2020-2021 Hubert Miś <hubert.mis@gmail.com>
# 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
select SPI
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
2 changes: 1 addition & 1 deletion drivers/misc/ft8xx/ft8xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 922f4db

Please sign in to comment.