All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] Are single- or multi- function functions preferred?
@ 2008-06-25 17:51 Frank Myhr
  2008-06-26 20:54 ` Jean Delvare
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Myhr @ 2008-06-25 17:51 UTC (permalink / raw)
  To: lm-sensors

Hi,

I'm in the process of cleaning up a patch that adds auto pwm mode
to it87. In the existing it87 driver each sysfs attribute maps to
exactly one (if read-only) or 2 (if read/write) functions. Whereas
in the vt1211 driver (for instance) multiple sysfs attributes map
to a single pair of "show_*" and "set_*" "multi-functions" that
switch on sensor_attr_2->nr to determine what to do. Is one of
these styles preferred over the other, and why?

Thanks,
Frank





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

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

end of thread, other threads:[~2008-06-26 20:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-25 17:51 [lm-sensors] Are single- or multi- function functions preferred? Frank Myhr
2008-06-26 20:54 ` 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.