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