Patch for kernel 6.16

Downstream pull request from @amazingfate https://github.com/armbian/rtl8723ds/pull/2
This commit is contained in:
Paolo Sabatino
2025-10-01 20:20:12 +02:00
committed by Igor
parent 86e3c4d220
commit 2cdfbde9e6
6 changed files with 84 additions and 0 deletions

View File

@@ -826,7 +826,11 @@ void BlinkTimerCallback(void *data)
#endif
{
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0)
PLED_SDIO pLed = timer_container_of(pLed, t, BlinkTimer);
#else
PLED_SDIO pLed = from_timer(pLed, t, BlinkTimer);
#endif
#else
PLED_SDIO pLed = (PLED_SDIO)data;
#endif