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:
parent
17d9e75e3b
commit
9ca3826abf
5 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue