Skip to content

Commit 5f29959

Browse files
committed
drivers: sensor: adi: Set adxl345 thread name
Sets the adxl345 driver thread name for easier debugging. Signed-off-by: Maureen Helm <[email protected]>
1 parent cc6cd16 commit 5f29959

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/sensor/adi/adxl345/adxl345_trigger.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ int adxl345_init_interrupt(const struct device *dev)
197197
adxl345_thread, drv_data,
198198
NULL, NULL, K_PRIO_COOP(CONFIG_ADXL345_THREAD_PRIORITY),
199199
0, K_NO_WAIT);
200+
201+
k_thread_name_set(&drv_data->thread, dev->name);
200202
#elif defined(CONFIG_ADXL345_TRIGGER_GLOBAL_THREAD)
201203
drv_data->work.handler = adxl345_work_cb;
202204
#endif

0 commit comments

Comments
 (0)