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:
Xiang Xiao
2020-08-06 17:08:40 +08:00
committed by Alan Carvalho de Assis
parent 3b76666a1e
commit 4c706771c3
115 changed files with 540 additions and 539 deletions
+2 -2
View File
@@ -746,8 +746,8 @@ static int cdcacm_release_rxpending(FAR struct cdcacm_dev_s *priv)
if (!sq_empty(&priv->rxpending))
{
wd_start(priv->rxfailsafe, CDCACM_RXDELAY, cdcacm_rxtimeout,
1, priv);
wd_start(priv->rxfailsafe, CDCACM_RXDELAY,
cdcacm_rxtimeout, 1, (wdparm_t)priv);
}
leave_critical_section(flags);
+4 -4
View File
@@ -703,8 +703,8 @@ static void cdcecm_poll_work(FAR void *arg)
/* Setup the watchdog poll timer again */
wd_start(self->txpoll, CDCECM_WDDELAY, cdcecm_poll_expiry, 1,
(wdparm_t)self);
wd_start(self->txpoll, CDCECM_WDDELAY,
cdcecm_poll_expiry, 1, (wdparm_t)self);
net_unlock();
}
@@ -784,8 +784,8 @@ static int cdcecm_ifup(FAR struct net_driver_s *dev)
/* Set and activate a timer process */
wd_start(priv->txpoll, CDCECM_WDDELAY, cdcecm_poll_expiry, 1,
(wdparm_t)priv);
wd_start(priv->txpoll, CDCECM_WDDELAY,
cdcecm_poll_expiry, 1, (wdparm_t)priv);
priv->bifup = true;
return OK;
+6 -6
View File
@@ -224,7 +224,7 @@ static int rndis_ifdown(FAR struct net_driver_s *dev);
static int rndis_txavail(FAR struct net_driver_s *dev);
static int rndis_transmit(FAR struct rndis_dev_s *priv);
static int rndis_txpoll(FAR struct net_driver_s *dev);
static void rndis_polltimer(int argc, uint32_t arg, ...);
static void rndis_polltimer(int argc, wdparm_t arg, ...);
/* usbclass callbacks */
@@ -1104,7 +1104,7 @@ static void rndis_pollworker(FAR void *arg)
*
****************************************************************************/
static void rndis_polltimer(int argc, uint32_t arg, ...)
static void rndis_polltimer(int argc, wdparm_t arg, ...)
{
FAR struct rndis_dev_s *priv = (FAR struct rndis_dev_s *)arg;
int ret;
@@ -1119,8 +1119,8 @@ static void rndis_polltimer(int argc, uint32_t arg, ...)
/* Setup the watchdog poll timer again */
wd_start(priv->txpoll, RNDIS_WDDELAY, rndis_polltimer, 1,
(wdparm_t)arg);
wd_start(priv->txpoll, RNDIS_WDDELAY,
rndis_polltimer, 1, (wdparm_t)arg);
}
/****************************************************************************
@@ -1135,8 +1135,8 @@ static int rndis_ifup(FAR struct net_driver_s *dev)
{
FAR struct rndis_dev_s *priv = (FAR struct rndis_dev_s *)dev->d_private;
wd_start(priv->txpoll, RNDIS_WDDELAY, rndis_polltimer,
1, (wdparm_t)priv);
wd_start(priv->txpoll, RNDIS_WDDELAY,
rndis_polltimer, 1, (wdparm_t)priv);
return OK;
}