]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
hwmon: (dme1737) fix divide-by-0
authorJuerg Haefliger <juergh@gmail.com>
Mon, 28 Jan 2008 00:39:46 +0000 (16:39 -0800)
committerMark M. Hoffman <mhoffman@lightlink.com>
Fri, 8 Feb 2008 01:39:44 +0000 (20:39 -0500)
commitff8421f733c91a70d8edadf9ce2842fca66172fa
tree28d94de65d92990a215029ad0257806afaa189df
parentcb96b8ca11644ee1223e0fb3f1f629ead15203cb
hwmon: (dme1737) fix divide-by-0

This patch fixes a possible divide-by-0 and a minor bug in the
FAN_FROM_REG macro (in TPC mode).

Signed-off-by: Juerg Haefliger <juergh at gmail.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
drivers/hwmon/dme1737.c