Skip to content
Snippets Groups Projects
Commit 0906a51d authored by Andrzej Głąbek's avatar Andrzej Głąbek Committed by Anas Nashif
Browse files

drivers: adc: Fix handling of invalid sampling requests


Commit aad21ecb introduced an incorrect
pattern of handling ADC sampling requests with invalid parameters in
both nRF ADC drivers. After discarding such request, the drivers do not
release properly the access lock and therefore become unusable.
Unfortunately, this pattern were later on copied in all other ADC
drivers in the source tree.
This commit adds the proper lock releasing in all the affected drivers.

Signed-off-by: default avatarAndrzej Głąbek <andrzej.glabek@nordicsemi.no>
parent 6e1dede1
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment