From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] [patch] hwmon-sysfs.h: add _RO and _RW versions of
Date: Tue, 10 Oct 2006 09:42:47 +0000 [thread overview]
Message-ID: <20061010114247.e2d5b0da.khali@linux-fr.org> (raw)
In-Reply-To: <45292789.5000003@gmail.com>
Hi Jim,
> 1st attachment adds _RO and _RW versions to the following macros:
> SENSOR_ATTR, SENSOR_DEVICE_ATTR,
> SENSOR_ATTR_2, SENSOR_DEVICE_ATTR_2,
>
> with these defined, the script (2nd attachment) will convert ~800 uses
> (in 17 files) to the correct _RO/_RW version, and remove the linewraps.
> The results compile cleanly (all modules in hwmon).
What are you trying to achieve?
May you please post a sample patch as obtained by using the script
above on one arbitrary driver? So that we can see what it looks like.
> Is this something you'd consider applying ? If so, when ?
It merely depends on what our purpose is. As for "when", remember that
we have two high priority tasks for hwmon drivers now: individual alarm
files, and i2c-isa removal. I would like the first one to be done for
2.6.20, and the second in 2.6.21 but individual drivers can (should) be
converted to platform drivers before that. These will be large and
intrusive patches and I am unlikely to take other large and intrudive
patches until it's done.
> Theres obvious timing issues - since this patch touches many drivers,
> which may have work in-queue (yours or other hackers'). Its also why
> I sent the script - the patch it yields is 94KB, so the script is far
> more inspectable, and with the script, you can chose the optimal
> time(s) w/o synchronization hassles.
Yes, sounds like a good idea, even though in this case your script is
rather frightening. I can't get why you didn't write a real perl
script? It would perform better and would certainly be somewhat more
readable too.
Thanks,
--
Jean Delvare
next prev parent reply other threads:[~2006-10-10 9:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-08 16:30 [lm-sensors] [patch] hwmon-sysfs.h: add _RO and _RW versions of Jim Cromie
2006-10-10 9:42 ` Jean Delvare [this message]
2006-10-11 4:38 ` Jim Cromie
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=20061010114247.e2d5b0da.khali@linux-fr.org \
--to=khali@linux-fr.org \
--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.