Update for kernel 4.15
This commit adds support for kernel 4.15, which changed the timer interface. Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
This commit is contained in:
parent
3fed0ea245
commit
27d3c96abc
3 changed files with 40 additions and 3 deletions
|
|
@ -152,7 +152,11 @@ typedef enum _RT_SPINLOCK_TYPE{
|
|||
|
||||
typedef struct rtl8192cd_priv *prtl8192cd_priv;
|
||||
typedef struct stat_info STA_INFO_T,*PSTA_INFO_T;
|
||||
#if defined (LINUX_VERSION_CODE) && (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0))
|
||||
typedef struct legacy_timer_emu RT_TIMER, *PRT_TIMER;
|
||||
#else
|
||||
typedef struct timer_list RT_TIMER, *PRT_TIMER;
|
||||
#endif
|
||||
typedef void * RT_TIMER_CALL_BACK;
|
||||
|
||||
#ifdef CONFIG_PCI_HCI
|
||||
|
|
@ -222,7 +226,11 @@ typedef enum _RT_SPINLOCK_TYPE{
|
|||
#define ODM_ENDIAN_TYPE ODM_ENDIAN_BIG
|
||||
#endif
|
||||
|
||||
#if defined (LINUX_VERSION_CODE) && (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0))
|
||||
typedef struct legacy_timer_emu RT_TIMER, *PRT_TIMER;
|
||||
#else
|
||||
typedef struct timer_list RT_TIMER, *PRT_TIMER;
|
||||
#endif
|
||||
typedef void * RT_TIMER_CALL_BACK;
|
||||
#define STA_INFO_T struct sta_info
|
||||
#define PSTA_INFO_T struct sta_info *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue