From: j.w.r.degoede@hhs.nl (Hans de Goede)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] New abituguru version (Re:
Date: Thu, 29 Dec 2005 11:24:44 +0000 [thread overview]
Message-ID: <43B3C77C.2020806@hhs.nl> (raw)
Jim Cromie wrote:
> Hi Jean, Hans,
>
> This patch refactors SENSOR_DEVICE_ATTR_2 macro, following pattern set by
> SENSOR_ATTR. First it creates a new macro SENSOR_ATTR_2() which expands
> to an initialization expression, then it uses that in
> SENSOR_DEVICE_ATTR_2, which declares and initializes a struct
> sensor_device_attribute_2.
>
>
> This version differs from that in Hans' abituguru driver,
> in that it preserves the argument order used in the original
> SENSOR_DEVICE_ATTR_2 macro, Hans' version invites confusion by
> transposing _nr and _index between 2 closely related macros.
>
> Happily though, Hans coded with __SENSOR_DEVICE_ATTR2,
> so his driver could coexist with the macro defined here,
> and he could switch at his discretion.
>
> Signed-off-by: Jim Cromie <jim.cromie at gmail.com>
I've attached a new version which uses the new SENSOR_ATTR_2() macro as
defined in Jim's patch. Currently a copy of the macro surrounded by an
#ifndef SENSOR_ATTR_2 is included in the driver for compiling against a
clean 2.6.14, once this macro gets merged upstream the copy will be removed.
Regards,
Hans
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: abituguru.c.txt
Url: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20051229/b0196dc1/abituguru.c-0001.txt
reply other threads:[~2005-12-29 11:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=43B3C77C.2020806@hhs.nl \
--to=j.w.r.degoede@hhs.nl \
--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.