]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (adt7473) Fix voltage conversion routines
authorJean Delvare <khali@linux-fr.org>
Sun, 26 Oct 2008 16:04:40 +0000 (17:04 +0100)
committerJean Delvare <khali@linux-fr.org>
Sun, 26 Oct 2008 16:04:40 +0000 (17:04 +0100)
commit9b6e8e7988efad3d695391d394157643b30ec9de
tree2fd43589b6673700b65c0c30efb4ffaecab690ea
parent965acc59fb795bdfa0d25799ee64db934eef65ae
hwmon: (adt7473) Fix voltage conversion routines

Fix voltage conversion routines. Based on an earlier patch from
Paulius Zaleckas.

According to the datasheet voltage is scaled with resistors and
value 192 is nominal voltage. 0 is 0V.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Cc: Darrick J. Wong <djwong@us.ibm.com>
drivers/hwmon/adt7473.c