drivers: i2c: nrfx: Fix log level is ignored
Fixes the problem that the log level set in Kconfig is ignored. Signed-off-by: Christoph Reiter <christoph.reiter@infineon.com>
This commit is contained in:
parent
a9f48b9fbe
commit
c523e3606a
2 changed files with 2 additions and 5 deletions
|
@ -9,9 +9,8 @@
|
|||
#include <dt-bindings/i2c/i2c.h>
|
||||
#include <nrfx_twi.h>
|
||||
|
||||
#define LOG_LEVEL CONFIG_I2C_LOG_LEVEL
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(i2c_nrfx_twi);
|
||||
LOG_MODULE_REGISTER(i2c_nrfx_twi, CONFIG_I2C_LOG_LEVEL);
|
||||
|
||||
struct i2c_nrfx_twi_data {
|
||||
struct k_sem transfer_sync;
|
||||
|
|
|
@ -9,10 +9,8 @@
|
|||
#include <dt-bindings/i2c/i2c.h>
|
||||
#include <nrfx_twim.h>
|
||||
|
||||
#define LOG_DOMAIN "i2c_nrfx_twim"
|
||||
#define LOG_LEVEL CONFIG_I2C_LOG_LEVEL
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(i2c_nrfx_twim);
|
||||
LOG_MODULE_REGISTER(i2c_nrfx_twim, CONFIG_I2C_LOG_LEVEL);
|
||||
|
||||
struct i2c_nrfx_twim_data {
|
||||
struct k_sem transfer_sync;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue