media: dvb-frontends: Use DIV_ROUND_CLOSEST directly to make it readable
authorzhong jiang <zhongjiang@huawei.com>
Wed, 9 Oct 2019 14:55:22 +0000 (11:55 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 16 Oct 2019 14:47:14 +0000 (11:47 -0300)
commit727fe909af7545fc317cd1ead4678724ec87df0a
tree72a55a095423517a226e2f3d3d8b4ab147e01b90
parentd587cdb2a5f57053ef182f64894ed3ba9e1559dc
media: dvb-frontends: Use DIV_ROUND_CLOSEST directly to make it readable

The kernel.h macro DIV_ROUND_CLOSEST performs the computation (x + d/2)/d
but is perhaps more readable.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/dvb-frontends/mt312.c