All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] temp1,temp2 calculation in w83781d.c
@ 2005-06-21  9:27 Sukhdeep Johar
  2005-06-21 15:27 ` Jean Delvare
  0 siblings, 1 reply; 2+ messages in thread
From: Sukhdeep Johar @ 2005-06-21  9:27 UTC (permalink / raw)
  To: lm-sensors

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-21 15:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-21  9:27 [lm-sensors] temp1,temp2 calculation in w83781d.c Sukhdeep Johar
2005-06-21 15:27 ` Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.