hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/drivers/gpu/arm/mali400/mali/common/mali_osk_types.h
....@@ -20,6 +20,8 @@
2020 extern "C" {
2121 #endif
2222
23
+#include <linux/timer.h>
24
+
2325 /**
2426 * @addtogroup uddapi Unified Device Driver (UDD) APIs
2527 *
....@@ -394,11 +396,11 @@
394396 * the callback. Therefore, the callback may not obtain any mutexes also held
395397 * by any callers of _mali_osk_timer_del(). Otherwise, a deadlock may occur.
396398 *
397
- * @param arg Function-specific data */
399
+ * @param arg the pointer to current _mali_osk_timer_t(timer_list) instance. */
398400 typedef void (*_mali_osk_timer_callback_t)(void *arg);
399401
400402 /** @brief Private type for Timer Callback Objects */
401
-typedef struct _mali_osk_timer_t_struct _mali_osk_timer_t;
403
+typedef struct timer_list _mali_osk_timer_t;
402404 /** @} */ /* end group _mali_osk_timer */
403405
404406