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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3338,7 +3338,7 @@ static int cxd2841er_set_frontend_s(struct dvb_frontend *fe)
		cxd2841er_tuner_set(fe);

	cxd2841er_tune_done(priv);
	timeout = ((3000000 + (symbol_rate - 1)) / symbol_rate) + 150;
	timeout = DIV_ROUND_UP(3000000, symbol_rate) + 150;

	i = 0;
	do {