From: Frank Myhr <fmyhr@fhmtech.com>
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] Are single- or multi- function functions preferred?
Date: Wed, 25 Jun 2008 17:51:41 +0000 [thread overview]
Message-ID: <486285AD.4040902@fhmtech.com> (raw)
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
next reply other threads:[~2008-06-25 17:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-25 17:51 Frank Myhr [this message]
2008-06-26 20:54 ` [lm-sensors] Are single- or multi- function functions preferred? Jean Delvare
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=486285AD.4040902@fhmtech.com \
--to=fmyhr@fhmtech.com \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.