mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Merge pull request #155 from Buddy-Matt/pointer-type-fix
fix incompatible pointer error
This commit is contained in:
commit
34117c7c68
|
@ -20,6 +20,7 @@
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/acpi.h>
|
#include <linux/acpi.h>
|
||||||
|
#include <linux/version.h>
|
||||||
#include "clevo_interfaces.h"
|
#include "clevo_interfaces.h"
|
||||||
|
|
||||||
#define DRIVER_NAME "clevo_acpi"
|
#define DRIVER_NAME "clevo_acpi"
|
||||||
|
@ -128,12 +129,18 @@ static int clevo_acpi_add(struct acpi_device *device)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0)
|
||||||
static int clevo_acpi_remove(struct acpi_device *device)
|
static int clevo_acpi_remove(struct acpi_device *device)
|
||||||
|
#else
|
||||||
|
static void clevo_acpi_remove(struct acpi_device *device)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
pr_debug("clevo_acpi driver remove\n");
|
pr_debug("clevo_acpi driver remove\n");
|
||||||
clevo_keyboard_remove_interface(&clevo_acpi_interface);
|
clevo_keyboard_remove_interface(&clevo_acpi_interface);
|
||||||
active_driver_data = NULL;
|
active_driver_data = NULL;
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void clevo_acpi_notify(struct acpi_device *device, u32 event)
|
void clevo_acpi_notify(struct acpi_device *device, u32 event)
|
||||||
|
|
Loading…
Reference in a new issue