[patch 1/1] de-macro w83627hf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jim,

On Sun, 30 Sep 2007 12:38:36 -0600, Jim Cromie wrote:
> this patch to drivers/hwmon/w83627hf converts many sysfs items from DEVICE_ATTRs
> to SENSOR_DEVICE_ATTRs, and replaces macros which expand to define redundant
> callbacks, with callbacks which use the SENSOR_DEV.nr to know what to do.
> 
> Signed-off-by:  Jim Cromie <jim.cromie at gmail.com>
> ---
> $ diffstat hwmon-w83627hf-demacro.patch
>  w83627hf.c |  695 +++++++++++++++++++++++++++++--------------------------------
>  1 file changed, 335 insertions(+), 360 deletions(-)
> 
> hi Jean,
> I have
> - avoided cosmetic changes
> - left sysfs-beep macros, since simple change didnt shrink driver
> - hoisted most nr-1 offset calcs into declarations
>     I left a few where the callback functions operated differently
> based upon the nr
> - changed callback names to match common naming convention in hwmon/*.c
>     I thought this appropriate, since _reg(s)?_ in the names indicated
> a wrapper/adaptor
>     If I were to keep one of the names in a multi-call-chain, which one ?
> 
> Im attaching, via webmail.  If this gets mangled, Ill resend from
> pop/thunderbird.

Patch is not mangled, however it doesn't apply on top of Mark's tree.
Please make sure that you have the following patches applied:
* hwmon: Allow writing of negative trigger temperatures
* hwmon: Don't export thermistor beta
* hwmon: Convert from class_device to device

You can fetch these patches from:
http://lm-sensors.org/kernel?p=kernel/mhoffman/hwmon-2.6.git;a=shortlog;h=testing

Once you send a patch that I can apply on top of Mark's tree, I'll
review it.

Thanks,
-- 
Jean Delvare




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux