From mboxrd@z Thu Jan 1 00:00:00 1970 From: broonie@kernel.org (Mark Brown) Date: Tue, 7 Jul 2015 14:31:55 +0100 Subject: [RESEND 08/10] regulator: pwm-regulator: Add support for continuous-voltage In-Reply-To: <1436173112-21397-9-git-send-email-lee.jones@linaro.org> References: <1436173112-21397-1-git-send-email-lee.jones@linaro.org> <1436173112-21397-9-git-send-email-lee.jones@linaro.org> Message-ID: <20150707133155.GL2887@sirena.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: Digital signature URL: From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757180AbbGGNcW (ORCPT ); Tue, 7 Jul 2015 09:32:22 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:42818 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754347AbbGGNcP (ORCPT ); Tue, 7 Jul 2015 09:32:15 -0400 Date: Tue, 7 Jul 2015 14:31:55 +0100 From: Mark Brown To: Lee Jones Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@stlinux.com, lgirdwood@gmail.com Message-ID: <20150707133155.GL2887@sirena.org.uk> References: <1436173112-21397-1-git-send-email-lee.jones@linaro.org> <1436173112-21397-9-git-send-email-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="z9sQuz+HmDh2hVO4" Content-Disposition: inline In-Reply-To: <1436173112-21397-9-git-send-email-lee.jones@linaro.org> X-Cookie: Only fools are quoted. User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: 91.125.27.234 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [RESEND 08/10] regulator: pwm-regulator: Add support for continuous-voltage X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --z9sQuz+HmDh2hVO4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. --z9sQuz+HmDh2hVO4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJVm9TLAAoJECTWi3JdVIfQZJcH/jpOYKJLavAhKJ0hWwFnTfCN 8NbPIubtfIk0ZOiUXpugZ0+TofxZUf5P/mJc1+6K9Sthv5Y5Stgruw0EqBfSmXEu yFncP/DaV0swEN8+GCUDg3osz2egenms4sqdNLRGqSm6+S1q3CpwoC9Flopaslq0 5hKUbhsAPAhOeL2Kdl/XPNTr1KbirajfsruP0gaP7F5nPD/fLtGRRlWEeiPQpXl8 admGiHnYppyfSuWIA8wsINm6FeUJpsITS7HauyXaq884R/aImhv0KSfMMFzomOGL qQPKLhBHiD/OPC4xU/y1kNcvuxrHcwvENGUTyYvNGFxVwr9RGItEmnFYkQD0+xE= =mzOJ -----END PGP SIGNATURE----- --z9sQuz+HmDh2hVO4--