Skip to content

Commit 17ec70c

Browse files
decsnykartben
authored andcommitted
spi_nxp_lpspi: Use one logging module
Use one logging module for LPSPI driver instead of 3 Signed-off-by: Declan Snyder <[email protected]>
1 parent 9d0762a commit 17ec70c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

drivers/spi/spi_nxp_lpspi/spi_nxp_lpspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define DT_DRV_COMPAT nxp_lpspi
88

99
#include <zephyr/logging/log.h>
10-
LOG_MODULE_REGISTER(spi_lpspi, CONFIG_SPI_LOG_LEVEL);
10+
LOG_MODULE_DECLARE(spi_lpspi, CONFIG_SPI_LOG_LEVEL);
1111

1212
#include "spi_nxp_lpspi_priv.h"
1313

drivers/spi/spi_nxp_lpspi/spi_nxp_lpspi_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
#include <zephyr/logging/log.h>
8-
LOG_MODULE_REGISTER(spi_lpspi_common, CONFIG_SPI_LOG_LEVEL);
8+
LOG_MODULE_REGISTER(spi_lpspi, CONFIG_SPI_LOG_LEVEL);
99

1010
#include "spi_nxp_lpspi_priv.h"
1111
#include <fsl_lpspi.h>

drivers/spi/spi_nxp_lpspi/spi_nxp_lpspi_dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define DT_DRV_COMPAT nxp_lpspi
88

99
#include <zephyr/logging/log.h>
10-
LOG_MODULE_REGISTER(spi_lpspi_dma, CONFIG_SPI_LOG_LEVEL);
10+
LOG_MODULE_DECLARE(spi_lpspi, CONFIG_SPI_LOG_LEVEL);
1111

1212
#include <zephyr/drivers/dma.h>
1313
#include "spi_nxp_lpspi_priv.h"

0 commit comments

Comments
 (0)