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: NAxel Lin <axel.lin@ingics.com> Acked-by: Nanish kumar <anish198519851985@gmail.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
Showing
想要评论请 注册 或 登录