Re: [PATCH 2/2] regulators: max8973: initial DT support

From: Mark Brown
Date: Tue Jun 25 2013 - 06:35:51 EST


On Fri, Jun 21, 2013 at 04:52:28PM +0200, Guennadi Liakhovetski wrote:
> On Fri, 21 Jun 2013, Mark Brown wrote:

> > A common approach here is just to embed the platform data in the
> > driver data then copy actual platform data in there or parse the device
> > tree bindings (when added) into the structure. This means that most of
> > the driver can just assume there's platform data which makes life a bit
> > simpler.

> But we can do this later, when we add DT support for those parameters,
> right?

Sure, but it does make sense to structure the code that way from the
start since it provides simplification.

Attachment: signature.asc
Description: Digital signature