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
+10 -10
View File
@@ -335,9 +335,9 @@ static int enc_interrupt(int irq, FAR void *context, FAR void *arg);
/* Watchdog timer expirations */
static void enc_toworker(FAR void *arg);
static void enc_txtimeout(int argc, uint32_t arg, ...);
static void enc_txtimeout(int argc, wdparm_t arg, ...);
static void enc_pollworker(FAR void *arg);
static void enc_polltimer(int argc, uint32_t arg, ...);
static void enc_polltimer(int argc, wdparm_t arg, ...);
/* NuttX callback functions */
@@ -1158,8 +1158,8 @@ static int enc_transmit(FAR struct enc_driver_s *priv)
* the timer is started?
*/
wd_start(priv->txtimeout, ENC_TXTIMEOUT, enc_txtimeout, 1,
(wdparm_t)priv);
wd_start(priv->txtimeout, ENC_TXTIMEOUT,
enc_txtimeout, 1, (wdparm_t)priv);
return OK;
}
@@ -1942,7 +1942,7 @@ static void enc_toworker(FAR void *arg)
*
****************************************************************************/
static void enc_txtimeout(int argc, uint32_t arg, ...)
static void enc_txtimeout(int argc, wdparm_t arg, ...)
{
FAR struct enc_driver_s *priv = (FAR struct enc_driver_s *)arg;
int ret;
@@ -2016,8 +2016,8 @@ static void enc_pollworker(FAR void *arg)
/* Setup the watchdog poll timer again */
wd_start(priv->txpoll, ENC_WDDELAY, enc_polltimer, 1,
(wdparm_t)arg);
wd_start(priv->txpoll, ENC_WDDELAY,
enc_polltimer, 1, (wdparm_t)arg);
}
/****************************************************************************
@@ -2037,7 +2037,7 @@ static void enc_pollworker(FAR void *arg)
*
****************************************************************************/
static void enc_polltimer(int argc, uint32_t arg, ...)
static void enc_polltimer(int argc, wdparm_t arg, ...)
{
FAR struct enc_driver_s *priv = (FAR struct enc_driver_s *)arg;
int ret;
@@ -2116,8 +2116,8 @@ static int enc_ifup(struct net_driver_s *dev)
/* Set and activate a timer process */
wd_start(priv->txpoll, ENC_WDDELAY, enc_polltimer, 1,
(wdparm_t)priv);
wd_start(priv->txpoll, ENC_WDDELAY,
enc_polltimer, 1, (wdparm_t)priv);
/* Mark the interface up and enable the Ethernet interrupt at the
* controller