Re: [PATCH] regulator: palmas: Remove wrong comment for the equation calculating num_voltages

2013-09-16 Thread Mark Brown
On Thu, Sep 12, 2013 at 09:38:12AM +0800, Axel Lin wrote: > Current equation on the comment is wrong. > For linear mapping starting from 0, the equation is (maxV-minV)/stepV + 1. > Since the linear mapping for PALMAS is not all starting from 0, the equation > on the comment is not useful and mislea

[PATCH] regulator: palmas: Remove wrong comment for the equation calculating num_voltages

2013-09-11 Thread Axel Lin
Current equation on the comment is wrong. For linear mapping starting from 0, the equation is (maxV-minV)/stepV + 1. Since the linear mapping for PALMAS is not all starting from 0, the equation on the comment is not useful and misleading. Thus remove it. Signed-off-by: Axel Lin --- drivers/regul