emc6d102 support

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

 



> >-/* IN are scaled 1.000 == 0xc0, mag = 3 */
> >-#define IN_TO_REG(val)		(SENSORS_LIMIT((((val)*0xc0+500)/1000),0,255))
> >-#define INEXT_FROM_REG(val,ext) (((val)*1000 + (ext)*250 + 96)/0xc0)
> >-#define IN_FROM_REG(val)	(INEXT_FROM_REG(val,0))
>
> Doh.  Dead code.  Should have been removed before...  Good catch.

One reason among others to use inline functions instead of macros.

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