temp1,temp2 calculation in w83781d.c

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

 



Hi, 

I see the temp1 being read as : 
          val*10           ; where val is the value read from the register. 

While temp2 is read as : 
         (val/128) *5.  ; where val is a two byte value read from the
registers.
I understand the reason behind the division by 128. 

But am not able to understand the multiplication by 5 & 10.
Can somebody please help me with this. Or point me to the relevant
material.

regards,
Sukhdeep




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

  Powered by Linux