Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. (cherry picked from commit f565f4c) Original-Signed-off-by: Lukasz Madej <l.madej@grinn-global.com> GitOrigin-RevId: f565f4c Change-Id: I0002f6f852c428103817ab43e0fdf578e1b80b65 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5488597 Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com> Reviewed-by: Dawid Niedźwiecki <dawidn@google.com> Commit-Queue: Dawid Niedźwiecki <dawidn@google.com> Tested-by: Dawid Niedźwiecki <dawidn@google.com>
- Loading branch information