Re: [PATCH] regulator: 88pm800: Fix checking whether num_regulator is valid

2013-08-13 Thread Mark Brown
On Sun, Aug 04, 2013 at 09:23:28AM +0800, Axel Lin wrote: > The code to check whether num_regulator is valid is wrong because it should > iterate all array entries rather than break from the for loop if > pdata->regulators[i] is NULL. Applied, thanks. signature.asc Description: Digital signature

[PATCH] regulator: 88pm800: Fix checking whether num_regulator is valid

2013-08-03 Thread Axel Lin
The code to check whether num_regulator is valid is wrong because it should iterate all array entries rather than break from the for loop if pdata->regulators[i] is NULL. Signed-off-by: Axel Lin --- drivers/regulator/88pm800.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff