Driver and tools for controlling Lenovo Legion laptops in Linux including fan control and power mode.
GNU General Public License v2.0
1.67k
stars
60
forks
source link
fix: Make legion_remove return void and set remove_new #251
Closed
johnfanv2 closed 2 months ago
The type of .remove in platform_driver changed from
int ()(struct platform_drive)
to
void ()(struct platform_drive)
in kernel 6.11 to force migration. In version before
.remove_new has type
void ()(struct platform_drive)
to allows a migration. We use remove_new to make it commpatible with different kernels.