Re: [PATCH v3 1/4] thermal: Add support for hierarchical thermal zones
From: Eduardo Valentin
Date: Wed Mar 02 2016 - 22:23:41 EST
On Wed, Mar 02, 2016 at 07:12:46PM -0800, Eduardo Valentin wrote:
>
> Thanks for moving this forward Javi,
>
> Few comments inline.
>
> On Wed, Nov 25, 2015 at 03:09:43PM +0000, Javi Merino wrote:
> > Add the ability to stack thermal zones on top of each other, creating a
> > hierarchy of thermal zones.
> > +
> > + if (!tz->ops->get_temp) {
> > + ret = get_subtz_temp(tz, temp);
> > + goto unlock;
> > + }
In fact, if we follow the semantics in DT, we should allow both,
regular sensors (.get_temp) and subtzs.