Commit 9db0fcde authored by Zheng Yongjun's avatar Zheng Yongjun Committed by Mauro Carvalho Chehab

media: cxd2841er: use DIV_ROUND_UP to calculate timeout

Don't open-code DIV_ROUND_UP() kernel macro.
Signed-off-by: default avatarZheng Yongjun <zhengyongjun3@huawei.com>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment