projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ce32a2
)
media: tda8083: use time_is_after_jiffies() instead of open coding it
author
Wang Qing
<wangqing@vivo.com>
Tue, 15 Feb 2022 01:55:48 +0000
(17:55 -0800)
committer
Hans Verkuil
<hverkuil-cisco@xs4all.nl>
Tue, 22 Feb 2022 08:41:12 +0000
(09:41 +0100)
Use the helper function time_is_{before,after}_jiffies() to improve
code readability.
Signed-off-by: Wang Qing <wangqing@vivo.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/dvb-frontends/tda8083.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb-frontends/tda8083.c
b/drivers/media/dvb-frontends/tda8083.c
index
5be11fd
..
e3e1c3d
100644
(file)
--- a/
drivers/media/dvb-frontends/tda8083.c
+++ b/
drivers/media/dvb-frontends/tda8083.c
@@
-162,7
+162,7
@@
static void tda8083_wait_diseqc_fifo (struct tda8083_state* state, int timeout)
{
unsigned long start = jiffies;
- while (
jiffies - start < timeout
&&
+ while (
time_is_after_jiffies(start + timeout)
&&
!(tda8083_readreg(state, 0x02) & 0x80))
{
msleep(50);