Re: [PATCH 2/2] pwm: pca9685: fix prescaler initialization

From: Andy Shevchenko
Date: Thu Jan 19 2017 - 12:01:11 EST


On Thu, Jan 19, 2017 at 6:52 PM, Clemens Gruber
<clemens.gruber@xxxxxxxxxxxx> wrote:
> On Thu, Jan 19, 2017 at 06:10:08PM +0200, Andy Shevchenko wrote:

>> So, summarize, I prefer (in order of preference from high to low):
>> - enforce default prescaler value based on default period (it's just one
>> line to write a register)
>> - calculate default period based on actual prescaler value
>
> Let's go with this one. I'll spin up a v2 where I calculate the
> period_ns value from the current prescaler value in the probe function.

I'm fine with it. Thanks!

--
With Best Regards,
Andy Shevchenko