提交 9db0fcde 编写于 作者: Z Zheng Yongjun 提交者: Mauro Carvalho Chehab

media: cxd2841er: use DIV_ROUND_UP to calculate timeout

Don't open-code DIV_ROUND_UP() kernel macro.
Signed-off-by: NZheng Yongjun <zhengyongjun3@huawei.com>
Reported-by: Nkernel test robot <lkp@intel.com>
Signed-off-by: NSean Young <sean@mess.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org>
上级 1b43bad3
...@@ -3338,7 +3338,7 @@ static int cxd2841er_set_frontend_s(struct dvb_frontend *fe) ...@@ -3338,7 +3338,7 @@ static int cxd2841er_set_frontend_s(struct dvb_frontend *fe)
cxd2841er_tuner_set(fe); cxd2841er_tuner_set(fe);
cxd2841er_tune_done(priv); cxd2841er_tune_done(priv);
timeout = ((3000000 + (symbol_rate - 1)) / symbol_rate) + 150; timeout = DIV_ROUND_UP(3000000, symbol_rate) + 150;
i = 0; i = 0;
do { do {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册