summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-08-01 16:53:26 +0800
committerMeco Man <[email protected]>2021-08-01 17:26:01 +0800
commit94ed55f34d5f0fb6f086e84eecfe4ce3b635056f (patch)
treeaae0f9dcb6b2233fd5825b82e062623b9b4a36c7 /components/drivers
parentb73ad3cf596c5371c8dca564433d1fccb6c73e13 (diff)
[workqueue] remove rt_delayed_work_init()
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/include/ipc/workqueue.h9
-rw-r--r--components/drivers/src/workqueue.c9
2 files changed, 3 insertions, 15 deletions
diff --git a/components/drivers/include/ipc/workqueue.h b/components/drivers/include/ipc/workqueue.h
index a156145641..03904d852e 100644
--- a/components/drivers/include/ipc/workqueue.h
+++ b/components/drivers/include/ipc/workqueue.h
@@ -5,6 +5,7 @@
*
* Change Logs:
* Date Author Notes
+ * 2021-08-01 Meco Man remove rt_delayed_work_init() and rt_delayed_work structure
*/
#ifndef WORKQUEUE_H__
#define WORKQUEUE_H__
@@ -48,11 +49,6 @@ struct rt_work
struct rt_workqueue *workqueue;
};
-struct rt_delayed_work
-{
- struct rt_work work;
-};
-
#ifdef RT_USING_HEAP
/**
* WorkQueue for DeviceDriver
@@ -82,9 +78,6 @@ rt_inline void rt_work_init(struct rt_work *work, void (*work_func)(struct rt_wo
work->type = 0;
}
-void rt_delayed_work_init(struct rt_delayed_work *work, void (*work_func)(struct rt_work *work,
- void *work_data), void *work_data);
-
#endif /* RT_USING_HEAP */
#endif
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;