From: Jean Delvare Date: Fri, 17 Oct 2008 15:51:14 +0000 (+0200) Subject: hwmon: (lm85) Simplify RANGE_TO_REG X-Git-Tag: v2.6.28-rc1~259^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b92adaddd7e96e1ba68d4f17a25747ab8057efe;p=pandora-kernel.git hwmon: (lm85) Simplify RANGE_TO_REG Function RANGE_TO_REG can easily be simplified. Credits go to Herbert Poetzl for indirectly suggesting this to me. I tested that the new implementation returns the same result as the original implementation for all input values. Signed-off-by: Jean Delvare Acked-by: Herbert Poetzl --- Reading git-diff-tree failed