drivers: sensor: adi: Set trigger thread name

Sets the trigger thread name for all adi sensor drivers to more clearly
identify the thread when tracing or debugging.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
This commit is contained in:
Maureen Helm 2024-10-20 13:38:02 -05:00 committed by David Leach
commit 9ca3826abf
5 changed files with 9 additions and 0 deletions

View file

@ -192,6 +192,8 @@ int adxl372_init_interrupt(const struct device *dev)
adxl372_thread, drv_data,
NULL, NULL, K_PRIO_COOP(CONFIG_ADXL372_THREAD_PRIORITY),
0, K_NO_WAIT);
k_thread_name_set(&drv_data->thread, dev->name);
#elif defined(CONFIG_ADXL372_TRIGGER_GLOBAL_THREAD)
drv_data->work.handler = adxl372_work_cb;
#endif