summaryrefslogtreecommitdiff
path: root/components/drivers/src/workqueue.c
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-08-09 08:52:19 +0800
committerGitHub <[email protected]>2021-08-09 08:52:19 +0800
commit0880b43498b9c783273fc011fc5838da734ec276 (patch)
tree006750ac6d89954ca641436a228dfea41d3ea751 /components/drivers/src/workqueue.c
parentb3ea49c8a32f48ca5f825e305c8e1e558f3dc9e4 (diff)
parent94ed55f34d5f0fb6f086e84eecfe4ce3b635056f (diff)
Merge pull request #4911 from mysterywolf/rt_delayed_work_init
[workqueue] remove rt_delayed_work_init()
Diffstat (limited to 'components/drivers/src/workqueue.c')
-rw-r--r--components/drivers/src/workqueue.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/components/drivers/src/workqueue.c b/components/drivers/src/workqueue.c
index 065c505015..8fcfd52688 100644
--- a/components/drivers/src/workqueue.c
+++ b/components/drivers/src/workqueue.c
@@ -5,7 +5,8 @@
*
* Change Logs:
* Date Author Notes
- * 2017-02-27 bernard fix the re-work issue.
+ * 2017-02-27 Bernard fix the re-work issue.
+ * 2021-08-01 Meco Man remove rt_delayed_work_init()
*/
#include <rthw.h>
@@ -339,12 +340,6 @@ rt_err_t rt_workqueue_cancel_all_work(struct rt_workqueue *queue)
return RT_EOK;
}
-void rt_delayed_work_init(struct rt_delayed_work *work, void (*work_func)(struct rt_work *work,
- void *work_data), void *work_data)
-{
- rt_work_init(&work->work, work_func, work_data);
-}
-
#ifdef RT_USING_SYSTEM_WORKQUEUE
static struct rt_workqueue *sys_workq;