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: improve adc read
Use information encoded in conversion result value to validate it. Check if MSB bit is set to zero. Check if channel number included in the result matches channel number selected for conversion. Use bitmask to extract converted value instead of math calculations. (cherry picked from commit 71e7a77) Original-Signed-off-by: Lukasz Madej <l.madej@grinn-global.com> GitOrigin-RevId: 71e7a77 Change-Id: I023f3ecd1127f41df288e0ee89512b571cb14f5f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5488598 Commit-Queue: Dawid Niedźwiecki <dawidn@google.com> Reviewed-by: Dawid Niedźwiecki <dawidn@google.com> Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com> Tested-by: Dawid Niedźwiecki <dawidn@google.com>
- Loading branch information