[patch pc87360 reroll 4/6] declarative attr enumeration skew

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

 



> callback-fn offset de-skew
>    temp, therm, fan, pwm callbacks all have an offset skew in the code
>    which accommodates attribute numbering conventions under
>    /sys/bus/i2c/devices/9191-6620/   (ie they start at 1)
>
>    here, we move that skew into the declaration, and out of the functions
>    (except for therm, where we simpify from 2 skews to 1)
>    The declarative skew is clearer, less error-prone, and more efficient.
>
$ diffstat 04-pc87360-mv-offset-skew-2-init.patch
 pc87360.c |  104 
+++++++++++++++++++++++++++++++-------------------------------
 1 files changed, 52 insertions(+), 52 deletions(-)


Signed-off-by:  Jim Cromie <jcromie at divsol.com>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 04-pc87360-mv-offset-skew-2-init.patch
Url: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20050803/9ae1200f/attachment.pl 


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

  Powered by Linux