Re: [PATCH 16/21] regulator: wm8994: Pass descriptor instead of GPIO number

From: Mark Brown
Date: Thu Apr 19 2018 - 10:05:44 EST


On Thu, Apr 19, 2018 at 03:55:35PM +0200, Linus Walleij wrote:

> drivers pass an enable GPIO to the regulator core. The wm2200
> for example is just managing the LDO without the use of the
> regulator framework (I guess this is technically incorrect).

It's fine if it's internal to the chip and there's no realistic
mechanism to replace the regulator with an off-chip one. The reason
the other two CODECs have explicit regulator drivers is that they're
designed to support using an off-chip regulator instead so they need to
look like external regulators do.

Attachment: signature.asc
Description: PGP signature