Skip to content

Commit fb4574c

Browse files
ChiHuaLkartben
authored andcommitted
driver: i2c: npcx: use CONFIG_I2C_LOG_LEVEL
This commit replaces the hard-coded log level with CONFIG_I2C_LOG_LEVEL. Signed-off-by: Jun Lin <[email protected]>
1 parent 3727d2e commit fb4574c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/i2c/i2c_npcx_controller.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676

7777
#include <zephyr/logging/log.h>
7878
#include <zephyr/irq.h>
79-
LOG_MODULE_REGISTER(i2c_npcx, LOG_LEVEL_ERR);
79+
LOG_MODULE_REGISTER(i2c_npcx, CONFIG_I2C_LOG_LEVEL);
8080

8181
/* I2C controller mode */
8282
#define NPCX_I2C_BANK_NORMAL 0

drivers/i2c/i2c_npcx_port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#include <soc.h>
3737

3838
#include <zephyr/logging/log.h>
39-
LOG_MODULE_REGISTER(i2c_npcx_port, LOG_LEVEL_ERR);
39+
LOG_MODULE_REGISTER(i2c_npcx_port, CONFIG_I2C_LOG_LEVEL);
4040

4141
#include "i2c_npcx_controller.h"
4242
#include "i2c-priv.h"

0 commit comments

Comments
 (0)