Re: [PATCH] lm87: Allow LM87_REG_CHANNEL_MODE to be set via DT
From: Jason Gunthorpe
Date: Thu Nov 10 2016 - 19:32:00 EST
On Thu, Nov 10, 2016 at 03:47:07PM -0800, Guenter Roeck wrote:
> On Thu, Nov 10, 2016 at 10:19:36AM -0700, Jason Gunthorpe wrote:
> > This compliments the existing scheme that lets it be set via
> > platform_data.
> >
> > Signed-off-by: Jason Gunthorpe <jgunthorpe@xxxxxxxxxxxxxxxxxxxx>
>
> I would prefer https://www.spinics.net/lists/devicetree/msg148819.html
> which appears to address the same problem and is less cryptic.
Is there a patch someplace that implements that proposed DT binding? I
couldn't find anything.
> NACK unless someone convinces me otherwise.
*shrug* both styles of definition seem to be used in various device
tree bindings.
The downside with Mahoda's proposal is that it only covers 3 of the 8
configuration bits, and will require alot of code for parsing. It
seems really clunky, and why is a regulator involved to set the A/D
sensitivity? Weird.
But I only need has-temp3, so if a patch appears please cc me and I'll
review it here..
Regards,
Jason