Re: Regulator: drivers that need to know their supply
From: Mark Brown
Date: Thu Apr 07 2016 - 13:03:04 EST
On Thu, Apr 07, 2016 at 03:25:09PM +0200, Martin Fuzzey wrote:
> To implement the .enable_time() method I need the voltage (which is
> the supply's voltage).
No, this is not sensible. You should be telling the framework about the
slew rate and letting the framework work out how long it's going to take
to transition. Your driver shouldn't be peering around inside other
regulators, it should be telling the framework what it does itself and
any handling of interrelationships should be in the framework.
Attachment:
signature.asc
Description: PGP signature