mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
sched/wdog: Replace all callback argument from uint32_t to wdparm_t
and alwasy cast the argument of wd_start to wdparm_t Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
3b76666a1e
commit
4c706771c3
@@ -1032,8 +1032,8 @@ static void lan91c111_poll_work(FAR void *arg)
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
||||
wd_start(priv->txpoll, LAN91C111_WDDELAY, lan91c111_poll_expiry, 1,
|
||||
(wdparm_t)dev);
|
||||
wd_start(priv->txpoll, LAN91C111_WDDELAY,
|
||||
lan91c111_poll_expiry, 1, (wdparm_t)dev);
|
||||
net_unlock();
|
||||
}
|
||||
|
||||
@@ -1133,8 +1133,8 @@ static int lan91c111_ifup(FAR struct net_driver_s *dev)
|
||||
|
||||
/* Set and activate a timer process */
|
||||
|
||||
wd_start(priv->txpoll, LAN91C111_WDDELAY, lan91c111_poll_expiry, 1,
|
||||
(wdparm_t)dev);
|
||||
wd_start(priv->txpoll, LAN91C111_WDDELAY,
|
||||
lan91c111_poll_expiry, 1, (wdparm_t)dev);
|
||||
net_unlock();
|
||||
|
||||
/* Enable the Ethernet interrupt */
|
||||
|
||||
Reference in New Issue
Block a user