Skip to content
Snippets Groups Projects
Commit d211c6e8 authored by Axel Lin's avatar Axel Lin Committed by Anton Vorontsov
Browse files

generic-adc-battery: Fix checking if none of the channels are supported


If none of the channels are supported, index is 0. Also ensure to return
error code instead of 0 in goto second_mem_fail path.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avataranish kumar <anish198519851985@gmail.com>
Signed-off-by: default avatarAnton Vorontsov <anton@enomsg.org>
parent e0835879
No related branches found
No related tags found
Loading
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