joshuagrisham / samsung-galaxybook-extras

Samsung Galaxybook Linux platform driver and accompanying utilities.
116 stars 15 forks source link

fix: remove acpi_driver owner field for kernel >= 6.10 #22

Closed ItzDerock closed 3 months ago

ItzDerock commented 3 months ago

Fixes #19

The ACPI .owner field was removed with 6.10 in https://github.com/torvalds/linux/commit/cc85f9c05bba23eb525497b42ac5b74801ccbd87. This PR adds in a guard to prevent setting the owner field on kernel versions after 6.10.

I have tested building this with 6.6.44, 6.9.12, 6.10.1, and 6.10.3. Functionality tested with only 6.10.1.

achapleau commented 3 months ago

Used the patch command to apply the diff file for this pull, and the driver compiles successfully and appears to be fully functional on kernel 6.10.4.

joshuagrisham commented 3 months ago

Thank you @ItzDerock ! Really nice change -- I will take it in directly :) Cheers!