clevo_interfaces: Move resource ID defs

This commit is contained in:
Christoffer Sandberg 2020-12-07 10:59:10 +01:00
parent 8667006c4a
commit 1f8b5a66b3
No known key found for this signature in database
GPG key ID: BF563F71B6C7A96D
3 changed files with 7 additions and 6 deletions

View file

@ -24,8 +24,6 @@
#include "clevo_interfaces.h"
#define DRIVER_NAME "clevo_acpi"
#define CLEVO_ACPI_RESOURCE_HID "CLV0001"
#define CLEVO_ACPI_DSM_UUID "93f224e4-fbdc-4bbf-add6-db71bdc0afad"
struct clevo_acpi_driver_data_t {
struct acpi_device *adev;

View file

@ -22,6 +22,13 @@
#include <linux/types.h>
#define CLEVO_WMI_EVENT_GUID "ABBC0F6B-8EA1-11D1-00A0-C90629100000"
#define CLEVO_WMI_EMAIL_GUID "ABBC0F6C-8EA1-11D1-00A0-C90629100000"
#define CLEVO_WMI_METHOD_GUID "ABBC0F6D-8EA1-11D1-00A0-C90629100000"
#define CLEVO_ACPI_RESOURCE_HID "CLV0001"
#define CLEVO_ACPI_DSM_UUID "93f224e4-fbdc-4bbf-add6-db71bdc0afad"
// The clevo get commands expect no parameters
#define CLEVO_CMD_GET_FANINFO1 0x63
#define CLEVO_CMD_GET_FANINFO2 0x64

View file

@ -24,10 +24,6 @@
#include <linux/version.h>
#include "clevo_interfaces.h"
#define CLEVO_WMI_EVENT_GUID "ABBC0F6B-8EA1-11D1-00A0-C90629100000"
#define CLEVO_WMI_EMAIL_GUID "ABBC0F6C-8EA1-11D1-00A0-C90629100000"
#define CLEVO_WMI_METHOD_GUID "ABBC0F6D-8EA1-11D1-00A0-C90629100000"
static int clevo_wmi_evaluate(u32 wmi_method_id, u32 wmi_arg, u32 *result)
{
struct acpi_buffer acpi_buffer_in = { (acpi_size)sizeof(wmi_arg),