From: Darrick J. Wong Date: Tue, 6 Jan 2009 22:40:51 +0000 (-0800) Subject: Create a DIV_ROUND_CLOSEST macro to do division with rounding X-Git-Tag: v2.6.29-rc1~379 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fe06081ef145d6582c39e18203b5fffe6f3abc2;p=pandora-kernel.git Create a DIV_ROUND_CLOSEST macro to do division with rounding Create a helper macro to divide two numbers and round the result to the nearest whole number. This is a helper macro for hwmon drivers that want to convert incoming sysfs values per standard hwmon practice, though the macro itself can be used by anyone. Signed-off-by: Darrick J. Wong Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed