Re: [PATCH] power_supply: generic-adc-battery: Fix checking if none of the channels are supported

2013-06-06 Thread Anton Vorontsov
On Tue, May 28, 2013 at 11:57:37AM +0530, anish singh wrote: > On Fri, May 24, 2013 at 11:11 PM, Axel Lin wrote: > > 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 > Acked-by:

Re: [PATCH] power_supply: generic-adc-battery: Fix checking if none of the channels are supported

2013-06-06 Thread Anton Vorontsov
On Tue, May 28, 2013 at 11:57:37AM +0530, anish singh wrote: On Fri, May 24, 2013 at 11:11 PM, Axel Lin axel@ingics.com wrote: 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

Re: [PATCH] power_supply: generic-adc-battery: Fix checking if none of the channels are supported

2013-05-28 Thread anish singh
On Fri, May 24, 2013 at 11:11 PM, Axel Lin wrote: > 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 Acked-by: anish kumar I think anton would have already picked up. > --- >

Re: [PATCH] power_supply: generic-adc-battery: Fix checking if none of the channels are supported

2013-05-28 Thread anish singh
On Fri, May 24, 2013 at 11:11 PM, Axel Lin axel@ingics.com wrote: 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@ingics.com Acked-by: anish kumar anish198519851...@gmail.com I

[PATCH] power_supply: generic-adc-battery: Fix checking if none of the channels are supported

2013-05-24 Thread Axel Lin
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 --- drivers/power/generic-adc-battery.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH] power_supply: generic-adc-battery: Fix checking if none of the channels are supported

2013-05-24 Thread Axel Lin
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@ingics.com --- drivers/power/generic-adc-battery.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git