Re: Global hyst value representation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Guenter.
Thanks for the help. :-)

On Wed, May 7, 2014 at 12:35 PM, Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
>
> On Wed, May 07, 2014 at 11:55:19AM -0300, Leandro de Marco wrote:
> > Hi.
> >
> > I am implementing a driver for the TMP512/513 temperature chip.
> >
> > It has a local temp sensor and 2/3 remote temp sensors. There is a hyst
> > setting, but this setting is unique and applies for all 3/4 sensors. I am
> > not sure what is the best way to represent this setting on sysfs.
> >
> > I read the instructions at Documentation/hwmon/sysfs-interface, and tried
> > to find other drivers with only one global hyst value, but have found
> > nothing.
> >
> > My solution would be to create an attribute temp1_max_hyst, so it will be
> > listed as subfeature by the lm_sensors library, and explain in the
> > Documentation that it applies for all sensors.
> >
> Common solution is to provide the hyst attribute for all temperatures
> to which it applies, but make it writable for only one. There are several
> drivers using this approach. tmp401.c is an example, but there are others.
>
> Guenter




-- 
Leandro
--------------------------------------------------------------------------
My Mind is Not for Rent.

_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux