From: Tapasweni Pathak Date: Wed, 8 Oct 2014 17:43:47 +0000 (+0530) Subject: staging: comedi: drivers: Use DIV_ROUND_CLOSEST X-Git-Tag: omap-for-v3.20/drop-legacy-3517~70^2~1189 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9798aa6c33b4da68d9f798e71dca138c9501f74;p=pandora-kernel.git staging: comedi: drivers: Use DIV_ROUND_CLOSEST The kernel.h macro DIV_ROUND_CLOSEST performs the computation (x + d/2)/d but is perhaps more readable. The Coccinelle script used: // @haskernel@ @@ @depends on haskernel@ expression x,__divisor; @@ - (((x) + ((__divisor) / 2)) / (__divisor)) + DIV_ROUND_CLOSEST(x,__divisor) // Signed-off-by: Tapasweni Pathak Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed