sensors: lis3mdl: Fix warning when TIGGER_OWN_THREAD is enabled
No need to cast dev in k_thread_create. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
7185055b38
commit
4e8f6f0fe5
@ -140,7 +140,7 @@ int lis3mdl_init_interrupt(struct device *dev)
|
||||
|
||||
k_thread_create(&drv_data->thread, drv_data->thread_stack,
|
||||
CONFIG_LIS3MDL_THREAD_STACK_SIZE,
|
||||
(k_thread_entry_t)lis3mdl_thread, POINTER_TO_INT(dev),
|
||||
(k_thread_entry_t)lis3mdl_thread, dev,
|
||||
0, NULL, K_PRIO_COOP(CONFIG_LIS3MDL_THREAD_PRIORITY),
|
||||
0, K_NO_WAIT);
|
||||
#elif defined(CONFIG_LIS3MDL_TRIGGER_GLOBAL_THREAD)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user