All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] Fault files naming convention
@ 2007-05-25 17:10 Jean Delvare
  2007-05-25 22:21 ` Juerg Haefliger
  2007-05-26  7:17 ` Hans de Goede
  0 siblings, 2 replies; 3+ messages in thread
From: Jean Delvare @ 2007-05-25 17:10 UTC (permalink / raw)
  To: lm-sensors

Hi all,

We have the following naming convention documented in
Documentation/hwmon/sysfs-interface for fault files:

in[0-*]_input_fault
fan[1-*]_input_fault
temp[1-*]_input_fault

Some drivers follow this convention (lm63, lm83, lm90, smsc47m192).
However some drivers omit the "input" part and create files named
fan1_fault (pc87427) or temp1_fault (dme1737). And the new "generic"
libsensors follows this second (non-standard) convention, so it fails
to report fault conditions for drivers which follow the standard.

We need to fix it all up so that we have a single convention and
libsensors uses it. I would fix the drivers which do not follow the
standard, and libsensors, however I start wondering if the short names
aren't better. After all, we don't include the "input" part in alarm
and beep file names, so it is questionable why we do it for fault
conditions. Well, it might make some sense, but on the other hand the
short name isn't ambiguous as far as I can see, so it would work too.
So I just don't know. But what I know is that we must fix it quickly.
Anyone has an opinion on why the long or the short names would be
preferable?

Thanks,
-- 
Jean Delvare

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

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

end of thread, other threads:[~2007-05-26  7:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-25 17:10 [lm-sensors] Fault files naming convention Jean Delvare
2007-05-25 22:21 ` Juerg Haefliger
2007-05-26  7:17 ` Hans de Goede

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.