void-packages/srcpkgs/acpi_call-dkms/patches/linux5.6.patch
2020-03-31 15:34:24 +02:00

21 lines
578 B
Diff

--- acpi_call.c.orig 2017-01-03 18:17:55.000000000 +0100
+++ acpi_call.c 2020-03-31 10:35:40.493575868 +0200
@@ -347,11 +347,18 @@
return ret;
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
+static struct proc_ops proc_acpi_operations = {
+ .proc_read = acpi_proc_read,
+ .proc_write = acpi_proc_write,
+};
+#else
static struct file_operations proc_acpi_operations = {
.owner = THIS_MODULE,
.read = acpi_proc_read,
.write = acpi_proc_write,
};
+#endif
#else
static int acpi_proc_read(char *page, char **start, off_t off,