mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-05 17:07:49 +00:00
intel_nuc_led: update to intel_nuc_led-6a3850e
This commit is contained in:
parent
6c1c6604ba
commit
10d19180fe
@ -2,8 +2,8 @@
|
|||||||
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
PKG_NAME="intel_nuc_led"
|
PKG_NAME="intel_nuc_led"
|
||||||
PKG_VERSION="637c07a"
|
PKG_VERSION="6a3850eadff554053ca7d95e830a624b28c53670"
|
||||||
PKG_SHA256="b6c3c6f8a1a306f853f521bd0b6ab3cc876cd10ae8f6d152a72056e93e2866d4"
|
PKG_SHA256="14313183b1ef547dcc43cf943695f227bb456b8acd634fe12b4345e471b53b36"
|
||||||
PKG_ARCH="x86_64"
|
PKG_ARCH="x86_64"
|
||||||
PKG_LICENSE="GPL"
|
PKG_LICENSE="GPL"
|
||||||
PKG_SITE="https://github.com/milesp20/intel_nuc_led/"
|
PKG_SITE="https://github.com/milesp20/intel_nuc_led/"
|
||||||
@ -16,7 +16,7 @@ pre_make_target() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
make_target() {
|
make_target() {
|
||||||
kernel_make KDIR=$(kernel_path)
|
kernel_make KDIR=$(kernel_path) default
|
||||||
}
|
}
|
||||||
|
|
||||||
makeinstall_target() {
|
makeinstall_target() {
|
||||||
|
@ -0,0 +1,43 @@
|
|||||||
|
From d8ceac3c27e55c39af6d6956479564682b466980 Mon Sep 17 00:00:00 2001
|
||||||
|
From: MilhouseVH <milhouseVH.github@nmacleod.com>
|
||||||
|
Date: Mon, 10 Feb 2020 11:01:39 +0000
|
||||||
|
Subject: [PATCH] fix build with kernel 5.6-rc1
|
||||||
|
|
||||||
|
---
|
||||||
|
nuc_led.c | 8 ++++++++
|
||||||
|
1 file changed, 8 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/nuc_led.c b/nuc_led.c
|
||||||
|
index c975f22..1d9a272 100644
|
||||||
|
--- a/nuc_led.c
|
||||||
|
+++ b/nuc_led.c
|
||||||
|
@@ -37,6 +37,7 @@
|
||||||
|
#include <linux/acpi.h>
|
||||||
|
#include <linux/vmalloc.h>
|
||||||
|
#include <linux/uaccess.h>
|
||||||
|
+#include <linux/version.h>
|
||||||
|
|
||||||
|
MODULE_AUTHOR("Miles Peterson");
|
||||||
|
MODULE_DESCRIPTION("Intel NUC LED Control WMI Driver");
|
||||||
|
@@ -443,11 +444,18 @@ static ssize_t acpi_proc_read(struct file *filp, char __user *buff,
|
||||||
|
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
|
||||||
|
|
||||||
|
/* Init & unload */
|
||||||
|
static int __init init_nuc_led(void)
|
||||||
|
--
|
||||||
|
2.20.1
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user