]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite769f8578fe44ec509ee419fe11247b26e74b697
tree72a55a095423517a226e2f3d3d8b4ab147e01b90
parent227075a29d9b0d1077aad37ea73c7731930ad993
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