Skip to content

Commit 5c95ff5

Browse files
kartbencfriedt
authored andcommitted
drivers: sensor: paj7620: use LOG_MODULE_DECLARE across driver files
paj7620 log module was being registered twice ; use LOG_MODULE_DECLARE instead in paj7620_trigger.c Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 60defb4 commit 5c95ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/pixart/paj7620/paj7620_trigger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <zephyr/logging/log.h>
1111
#include <zephyr/drivers/gpio.h>
1212

13-
LOG_MODULE_REGISTER(paj7620, CONFIG_SENSOR_LOG_LEVEL);
13+
LOG_MODULE_DECLARE(paj7620, CONFIG_SENSOR_LOG_LEVEL);
1414

1515
static void paj7620_gpio_callback(const struct device *dev,
1616
struct gpio_callback *cb,

0 commit comments

Comments
 (0)