Skip to content
Commit f565f4ca authored by Lukasz Madej's avatar Lukasz Madej Committed by Alberto Escolar
Browse files

drivers: adc: adc_ad559x: fix driver init



k_thread_name_set() function returns an error if CONFIG_THREAD_NAME is
not enabled which may make the driver not functional.

Fix the issue by adding a check against CONFIG_THREAD_NAME avaliability
before calling k_thread_name_set() function so the driver can operate
properly with CONFIG_THREAD_NAME disabled.

Signed-off-by: default avatarLukasz Madej <l.madej@grinn-global.com>
parent 55235712
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment