wifi: mwifiex: Convert to use jiffies macro
authorChen Yufan <chenyufan@vivo.com>
Fri, 23 Aug 2024 07:03:19 +0000 (15:03 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 3 Sep 2024 18:31:24 +0000 (21:31 +0300)
commit97b766f989bcd06e5a7651b1080001d7327012f5
tree8d364df7b7d7e4e4226ed103719c3a474ac4b3fa
parent0c896eceb5f348b5e314f5cd5faad966f09a56ff
wifi: mwifiex: Convert to use jiffies macro

Use time_after macro instead of using jiffies directly to handle wraparound.
Change the type to to unsigned long to avoid unnecessary casts.

Signed-off-by: Chen Yufan <chenyufan@vivo.com>
Acked-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20240823070320.430753-1-chenyufan@vivo.com
drivers/net/wireless/marvell/mwifiex/main.h
drivers/net/wireless/marvell/mwifiex/tdls.c