All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [patch] hwmon-sysfs.h: add _RO and _RW versions of
@ 2006-10-08 16:30 Jim Cromie
  2006-10-10  9:42 ` Jean Delvare
  2006-10-11  4:38 ` Jim Cromie
  0 siblings, 2 replies; 3+ messages in thread
From: Jim Cromie @ 2006-10-08 16:30 UTC (permalink / raw)
  To: lm-sensors

hi Jean,

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).

Is this something you'd consider applying ? If so, when ?
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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff.ro-rw.20061008.094436
Url: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20061008/b684751b/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ro-rw-change
Url: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20061008/b684751b/attachment-0001.pl 

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

end of thread, other threads:[~2006-10-11  4:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2006-10-11  4:38 ` Jim Cromie

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.