drivers: sensors: Fix log module registration
All sensors were using legacy log module registeration method where LOG_LEVEL was defined before registeration. This method was error prone as it requires preserving includes order. Replaced with LOG_MODULE_REGISTER(foo, level). Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
6c34983ed2
commit
ac417abdf0
99 changed files with 116 additions and 228 deletions
|
@ -23,8 +23,7 @@
|
|||
|
||||
#include "bme280.h"
|
||||
|
||||
#define LOG_LEVEL CONFIG_SENSOR_LOG_LEVEL
|
||||
LOG_MODULE_REGISTER(BME280);
|
||||
LOG_MODULE_REGISTER(BME280, CONFIG_SENSOR_LOG_LEVEL);
|
||||
|
||||
static int bm280_reg_read(struct bme280_data *data,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue