This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: cxd2841er: use DIV_ROUND_UP to calculate timeout
Author:  Zheng Yongjun <[email protected]>
Date:    Tue Dec 22 14:32:14 2020 +0100

Don't open-code DIV_ROUND_UP() kernel macro.

Signed-off-by: Zheng Yongjun <[email protected]>
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Sean Young <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/dvb-frontends/cxd2841er.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

diff --git a/drivers/media/dvb-frontends/cxd2841er.c 
b/drivers/media/dvb-frontends/cxd2841er.c
index 758c95bc3b11..5431f922f55e 100644
--- a/drivers/media/dvb-frontends/cxd2841er.c
+++ b/drivers/media/dvb-frontends/cxd2841er.c
@@ -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 {

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to