[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 7 Jul 2015 14:31:55 +0100
From: Mark Brown <broonie@...nel.org>
To: Lee Jones <lee.jones@...aro.org>
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
kernel@...inux.com, lgirdwood@...il.com
Subject: Re: [RESEND 08/10] regulator: pwm-regulator: Add support for
continuous-voltage
On Mon, Jul 06, 2015 at 09:58:30AM +0100, Lee Jones wrote:
> + tmp = max_duty_cycle - min_mV * max_duty_cycle / vdiff;
> + pwm_code = tmp + max_duty_cycle * volt_mV / vdiff;
These need some brackets to be clear that they're correct.
Download attachment "signature.asc" of type "application/pgp-signature" (474 bytes)
Powered by blists - more mailing lists