commit | d211c6e82435dfa4ae9f4d80bb2ee75930bde5d4 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Sat May 25 01:41:44 2013 +0800 |
committer | Anton Vorontsov <anton@enomsg.org> | Thu Jun 06 17:33:40 2013 -0700 |
tree | 1bde31258a74078e08d3d814bf56072a6be0cfab | |
parent | e08358792422ef0b78d7c81f333fc0803fb41cd4 [diff] |
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: Axel Lin <axel.lin@ingics.com> Acked-by: anish kumar <anish198519851985@gmail.com> Signed-off-by: Anton Vorontsov <anton@enomsg.org>