Remove the unneeded worker_t cast
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
373363d750
commit
32ee2ae407
@ -3163,7 +3163,7 @@ static void cxd56_sdio_callback(void *arg)
|
||||
mcinfo("Queuing callback to %p(%p)\n",
|
||||
priv->callback, priv->cbarg);
|
||||
|
||||
work_queue(HPWORK, &priv->cbwork, (worker_t)priv->callback,
|
||||
work_queue(HPWORK, &priv->cbwork, priv->callback,
|
||||
priv->cbarg, delay);
|
||||
}
|
||||
else
|
||||
|
@ -1330,7 +1330,7 @@ static int imxrt_interrupt(int irq, void *context, FAR void *arg)
|
||||
mcinfo("Queuing callback to %p(%p)\n",
|
||||
priv->callback, priv->cbarg);
|
||||
|
||||
(void)work_queue(HPWORK, &priv->cbwork, (worker_t)priv->callback,
|
||||
(void)work_queue(HPWORK, &priv->cbwork, priv->callback,
|
||||
priv->cbarg, 0);
|
||||
}
|
||||
else
|
||||
@ -3148,7 +3148,7 @@ static void imxrt_callback(void *arg)
|
||||
mcinfo("Queuing callback to %p(%p)\n",
|
||||
priv->callback, priv->cbarg);
|
||||
|
||||
work_queue(HPWORK, &priv->cbwork, (worker_t)priv->callback,
|
||||
work_queue(HPWORK, &priv->cbwork, priv->callback,
|
||||
priv->cbarg, 0);
|
||||
}
|
||||
else
|
||||
|
@ -2831,7 +2831,7 @@ static void kinetis_callback(void *arg)
|
||||
|
||||
mcinfo("Queuing callback to %p(%p)\n",
|
||||
priv->callback, priv->cbarg);
|
||||
work_queue(HPWORK, &priv->cbwork, (worker_t)priv->callback,
|
||||
work_queue(HPWORK, &priv->cbwork, priv->callback,
|
||||
priv->cbarg, 0);
|
||||
}
|
||||
else
|
||||
|
@ -615,7 +615,7 @@ static int adc_interrupt(int irq, void *context, FAR void *arg)
|
||||
#ifdef CONFIG_ADC_WORKER_THREAD
|
||||
if (adc0_int_done == 1)
|
||||
{
|
||||
work_queue(HPWORK, &priv->irqwork, (worker_t)adc_irqworker,
|
||||
work_queue(HPWORK, &priv->irqwork, adc_irqworker,
|
||||
(FAR void *)priv, 0);
|
||||
}
|
||||
|
||||
|
@ -1277,7 +1277,7 @@ static int lpc17_40_interrupt(int irq, void *context, FAR void *arg)
|
||||
*/
|
||||
|
||||
work_queue(ETHWORK, &priv->lp_rxwork,
|
||||
(worker_t)lpc17_40_rxdone_work, priv, 0);
|
||||
lpc17_40_rxdone_work, priv, 0);
|
||||
}
|
||||
|
||||
/* Check for Tx events ********************************************/
|
||||
@ -1339,7 +1339,7 @@ static int lpc17_40_interrupt(int irq, void *context, FAR void *arg)
|
||||
*/
|
||||
|
||||
work_queue(ETHWORK, &priv->lp_txwork,
|
||||
(worker_t)lpc17_40_txdone_work, priv, 0);
|
||||
lpc17_40_txdone_work, priv, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1489,7 +1489,7 @@ static void lpc17_40_poll_work(FAR void *arg)
|
||||
|
||||
if (considx != prodidx)
|
||||
{
|
||||
work_queue(ETHWORK, &priv->lp_rxwork, (worker_t)lpc17_40_rxdone_work,
|
||||
work_queue(ETHWORK, &priv->lp_rxwork, lpc17_40_rxdone_work,
|
||||
priv, 0);
|
||||
}
|
||||
|
||||
|
@ -2697,8 +2697,8 @@ static void lpc17_40_callback(void *arg)
|
||||
|
||||
mcinfo("Queuing callback to %p(%p)\n", priv->callback,
|
||||
priv->cbarg);
|
||||
work_queue(HPWORK, &priv->cbwork, (worker_t)priv->callback,
|
||||
priv->cbarg, 0);
|
||||
work_queue(HPWORK, &priv->cbwork, priv->callback,
|
||||
priv->cbarg, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2787,7 +2787,7 @@ static void lpc43_callback(struct lpc43_dev_s *priv)
|
||||
|
||||
mcinfo("Queuing callback to %p(%p)\n",
|
||||
priv->callback, priv->cbarg);
|
||||
work_queue(HPWORK, &priv->cbwork, (worker_t)priv->callback,
|
||||
work_queue(HPWORK, &priv->cbwork, priv->callback,
|
||||
priv->cbarg, 0);
|
||||
}
|
||||
else
|
||||
|
@ -2783,7 +2783,7 @@ static void lpc54_callback(struct lpc54_dev_s *priv)
|
||||
|
||||
mcinfo("Queuing callback to %p(%p)\n",
|
||||
priv->callback, priv->cbarg);
|
||||
work_queue(HPWORK, &priv->cbwork, (worker_t)priv->callback,
|
||||
work_queue(HPWORK, &priv->cbwork, priv->callback,
|
||||
priv->cbarg, 0);
|
||||
}
|
||||
else
|
||||
|
@ -2682,7 +2682,7 @@ static void sam_callback(void *arg)
|
||||
priv->callback, priv->cbarg);
|
||||
|
||||
work_queue(LPWORK, &priv->cbwork,
|
||||
(worker_t)priv->callback, priv->cbarg, 0);
|
||||
priv->callback, priv->cbarg, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -3162,7 +3162,7 @@ static void sam_callback(void *arg)
|
||||
}
|
||||
|
||||
mcinfo("Queuing callback to %p(%p)\n", priv->callback, priv->cbarg);
|
||||
ret = work_queue(LPWORK, &priv->cbwork, (worker_t)priv->callback,
|
||||
ret = work_queue(LPWORK, &priv->cbwork, priv->callback,
|
||||
priv->cbarg, 0);
|
||||
if (ret < 0)
|
||||
{
|
||||
|
@ -1427,7 +1427,7 @@ static int sam_interrupt(int irq, void *context, FAR void *arg)
|
||||
|
||||
mcinfo("Queuing callback to %p(%p)\n", priv->callback,
|
||||
priv->cbarg);
|
||||
(void)work_queue(HPWORK, &priv->cbwork, (worker_t)priv->callback,
|
||||
(void)work_queue(HPWORK, &priv->cbwork, priv->callback,
|
||||
priv->cbarg, 0);
|
||||
}
|
||||
else
|
||||
@ -3242,7 +3242,7 @@ static void sam_callback(void *arg)
|
||||
|
||||
mcinfo("Queuing callback to %p(%p)\n", priv->callback,
|
||||
priv->cbarg);
|
||||
work_queue(HPWORK, &priv->cbwork, (worker_t)priv->callback,
|
||||
work_queue(HPWORK, &priv->cbwork, priv->callback,
|
||||
priv->cbarg, 0);
|
||||
}
|
||||
else
|
||||
|
@ -3228,7 +3228,7 @@ static void sam_callback(void *arg)
|
||||
}
|
||||
|
||||
mcinfo("Queuing callback to %p(%p)\n", priv->callback, priv->cbarg);
|
||||
ret = work_queue(LPWORK, &priv->cbwork, (worker_t)priv->callback,
|
||||
ret = work_queue(LPWORK, &priv->cbwork, priv->callback,
|
||||
priv->cbarg, 0);
|
||||
if (ret < 0)
|
||||
{
|
||||
|
@ -3006,7 +3006,7 @@ static void stm32_callback(void *arg)
|
||||
|
||||
mcinfo("Queuing callback to %p(%p)\n",
|
||||
priv->callback, priv->cbarg);
|
||||
work_queue(HPWORK, &priv->cbwork, (worker_t)priv->callback,
|
||||
work_queue(HPWORK, &priv->cbwork, priv->callback,
|
||||
priv->cbarg, 0);
|
||||
}
|
||||
else
|
||||
|
@ -3294,7 +3294,7 @@ static void stm32_callback(void *arg)
|
||||
|
||||
mcinfo("Queuing callback to %p(%p)\n",
|
||||
priv->callback, priv->cbarg);
|
||||
work_queue(HPWORK, &priv->cbwork, (worker_t)priv->callback,
|
||||
work_queue(HPWORK, &priv->cbwork, priv->callback,
|
||||
priv->cbarg, 0);
|
||||
}
|
||||
else
|
||||
|
@ -1609,7 +1609,7 @@ static void stm32_sdmmc_fifo_monitor(FAR void *arg)
|
||||
STM32_SDMMC_STA_DPSMACT)
|
||||
{
|
||||
work_queue(HPWORK, &priv->cbfifo,
|
||||
(worker_t)stm32_sdmmc_fifo_monitor, arg, 1);
|
||||
stm32_sdmmc_fifo_monitor, arg, 1);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@ -1696,7 +1696,7 @@ static int stm32_sdmmc_interrupt(int irq, void *context, void *arg)
|
||||
|
||||
stm32_recvfifo(priv);
|
||||
work_queue(HPWORK, &priv->cbfifo,
|
||||
(worker_t)stm32_sdmmc_fifo_monitor, arg, 1);
|
||||
stm32_sdmmc_fifo_monitor, arg, 1);
|
||||
}
|
||||
|
||||
/* Otherwise, Is the transmit FIFO half empty or less? If so
|
||||
@ -3402,7 +3402,7 @@ static void stm32_callback(void *arg)
|
||||
mcinfo("Queuing callback to %p(%p)\n",
|
||||
priv->callback, priv->cbarg);
|
||||
|
||||
work_queue(HPWORK, &priv->cbwork, (worker_t)priv->callback,
|
||||
work_queue(HPWORK, &priv->cbwork, priv->callback,
|
||||
priv->cbarg, 0);
|
||||
}
|
||||
else
|
||||
|
@ -3002,7 +3002,7 @@ static void stm32_callback(void *arg)
|
||||
|
||||
mcinfo("Queuing callback to %p(%p)\n",
|
||||
priv->callback, priv->cbarg);
|
||||
work_queue(HPWORK, &priv->cbwork, (worker_t)priv->callback,
|
||||
work_queue(HPWORK, &priv->cbwork, priv->callback,
|
||||
priv->cbarg, 0);
|
||||
}
|
||||
else
|
||||
|
@ -1103,7 +1103,7 @@ int bl_os_workqueue_submit_hpwork(void *work,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return work_queue(OS_HPWORK, work, (worker_t)worker, argv, tick);
|
||||
return work_queue(OS_HPWORK, work, worker, argv, tick);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@ -1132,7 +1132,7 @@ int bl_os_workqueue_submit_lpwork(void *work,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return work_queue(OS_LPWORK, work, (worker_t)worker, argv, tick);
|
||||
return work_queue(OS_LPWORK, work, worker, argv, tick);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -1329,7 +1329,7 @@ static void litex_callback(void *arg)
|
||||
|
||||
mcinfo("Queuing callback to %p(%p)\n",
|
||||
priv->callback, priv->cbarg);
|
||||
work_queue(HPWORK, &priv->cbwork, (worker_t)priv->callback,
|
||||
work_queue(HPWORK, &priv->cbwork, priv->callback,
|
||||
priv->cbarg, 0);
|
||||
}
|
||||
else
|
||||
|
@ -2892,7 +2892,7 @@ static void mpfs_callback(void *arg)
|
||||
mcinfo("Queuing callback to %p(%p)\n",
|
||||
priv->callback, priv->cbarg);
|
||||
|
||||
work_queue(HPWORK, &priv->cbwork, (worker_t)priv->callback,
|
||||
work_queue(HPWORK, &priv->cbwork, priv->callback,
|
||||
priv->cbarg, 0);
|
||||
}
|
||||
else
|
||||
|
@ -895,7 +895,7 @@ static void usbhost_notification_callback(FAR void *arg, ssize_t nbytes)
|
||||
if (work_available(&priv->ntwork))
|
||||
{
|
||||
work_queue(HPWORK, &priv->ntwork,
|
||||
(worker_t)usbhost_notification_work,
|
||||
usbhost_notification_work,
|
||||
priv, delay);
|
||||
}
|
||||
}
|
||||
|
@ -500,7 +500,7 @@ static ssize_t cdcwdm_read(FAR struct file *filep, FAR char *buffer,
|
||||
if (work_available(&priv->comm_rxwork))
|
||||
{
|
||||
(void)work_queue(LPWORK, &priv->comm_rxwork,
|
||||
(worker_t)usbhost_rxdata_work,
|
||||
usbhost_rxdata_work,
|
||||
priv, 0);
|
||||
}
|
||||
}
|
||||
@ -797,7 +797,7 @@ static void usbhost_bulkin_callback(FAR void *arg, ssize_t nbytes)
|
||||
if (work_available(&priv->bulk_rxwork))
|
||||
{
|
||||
(void)work_queue(LPWORK, &priv->bulk_rxwork,
|
||||
(worker_t)usbhost_bulkin_work, priv, delay);
|
||||
usbhost_bulkin_work, priv, delay);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1022,7 +1022,7 @@ static void usbhost_notification_work(FAR void *arg)
|
||||
if (work_available(&priv->comm_rxwork))
|
||||
{
|
||||
(void)work_queue(LPWORK, &priv->comm_rxwork,
|
||||
(worker_t)usbhost_rxdata_work,
|
||||
usbhost_rxdata_work,
|
||||
priv, 0);
|
||||
}
|
||||
}
|
||||
@ -1117,7 +1117,7 @@ static void usbhost_notification_callback(FAR void *arg, ssize_t nbytes)
|
||||
if (work_available(&priv->ntwork))
|
||||
{
|
||||
(void)work_queue(LPWORK, &priv->ntwork,
|
||||
(worker_t)usbhost_notification_work,
|
||||
usbhost_notification_work,
|
||||
priv, delay);
|
||||
}
|
||||
}
|
||||
|
@ -1236,7 +1236,7 @@ static void usbhost_callback(FAR void *arg, ssize_t nbytes)
|
||||
|
||||
if (work_available(&priv->work) && !priv->disconnected)
|
||||
{
|
||||
work_queue(LPWORK, &priv->work, (worker_t)usbhost_hub_event,
|
||||
work_queue(LPWORK, &priv->work, usbhost_hub_event,
|
||||
hubclass, delay);
|
||||
}
|
||||
}
|
||||
@ -1496,7 +1496,7 @@ static int usbhost_disconnected(struct usbhost_class_s *hubclass)
|
||||
/* Schedule the disconnection work */
|
||||
|
||||
ret = work_queue(LPWORK, &priv->work,
|
||||
(worker_t)usbhost_disconnect_event, hubclass, 0);
|
||||
usbhost_disconnect_event, hubclass, 0);
|
||||
leave_critical_section(flags);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user