Re: [PATCH] regulator: pwm: Try to avoid voltage error in duty cycle calculation

From: Mark Brown
Date: Mon Apr 04 2016 - 12:26:08 EST


On Sun, Apr 03, 2016 at 04:37:18PM +0530, Laxman Dewangan wrote:
> On Saturday 02 April 2016 10:23 PM, Mark Brown wrote:

> >Yes, you're doing a 64 bit divide so that's kind of expected...

> Is there any way to resolve this issue?

You need to reorganize the maths so you're not doing a 64 bit divide
operation or use do_div().

Attachment: signature.asc
Description: PGP signature