All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] Intend to implement ADT7467/ADT7468 driver
@ 2008-10-21 12:21 Bernhard Rieder
  2008-10-21 12:39 ` Hans de Goede
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Bernhard Rieder @ 2008-10-21 12:21 UTC (permalink / raw)
  To: lm-sensors

Hi Everybody,

I am currently working on an ADT746[78] driver which will be finished soon.

However, I am not sure how to react to errors. Which values do I return in case
the chip reports errors (i.e. temp=-64 is an error value for the temperature reading,
-63 is ok). Are there somewhere error values defined which can used for this? I do
not think usinf -64 is a good choice, because the chip has two modes for temperature
and an error would be reported as -128 in the other mode. Additionally, -64 could be
interpreted as a real value (at least in sibiria when it is a cold winter day).

Are there somewhere constants like SENSORS_VOLTAGE_INVALID, SENSORS_TEMP_INVALID, ...
which I missed? I think common error values would be really beneficial ...

best regards,
Bernhard

-- 
Dipl.-Ing. Bernhard Rieder           email: bernhard@vmars.tuwien.ac.at
Real-Time Systems Group              web: http://www.vmars.tuwien.ac.at/
Vienna University of Technology      voice: +43 (1) 58801-18224
A-1040 Wien, Treitlstrafle 3/182-1    fax:   +43 (1) 5869149


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-10-22  6:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-21 12:21 [lm-sensors] Intend to implement ADT7467/ADT7468 driver Bernhard Rieder
2008-10-21 12:39 ` Hans de Goede
2008-10-21 22:43 ` Darrick J. Wong
2008-10-22  6:35 ` Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.