New abituguru version (Re:
Quoted 14 lines · Jim Cromie
Hi Jean, Hans,
This patch refactors
SENSOR_DEVICE_ATTR_2macro, following pattern set bySENSOR_ATTR. First it creates a new macroSENSOR_ATTR_2()which expands to an initialization expression, then it uses that inSENSOR_DEVICE_ATTR_2, which declares and initializes a structsensor_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_2macro, Hans' version invites confusion by transposing_nrand_indexbetween 2 closely related macros.
Quoted 5 lines
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