clevo_interfaces: remove/clean up headers

This commit is contained in:
Christoffer Sandberg 2020-12-03 10:15:38 +01:00
parent 6f14b22b33
commit 459a16de00
No known key found for this signature in database
GPG key ID: BF563F71B6C7A96D
5 changed files with 4 additions and 29 deletions

View file

@ -2,7 +2,7 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/acpi.h>
#include "ck.h"
#include "clevo_interfaces.h"
#define DRIVER_NAME "clevo_acpi"
#define CLEVO_ACPI_RESOURCE_HID "CLV0001"
@ -129,7 +129,6 @@ void clevo_acpi_notify(struct acpi_device *device, u32 event)
// clevo_acpi_driver_data = container_of(&device, struct clevo_acpi_driver_data_t, adev);
if (!IS_ERR_OR_NULL(clevo_acpi_interface.event_callb)) {
// Execute registered callback
pr_debug("calling event addr\n");
clevo_acpi_interface.event_callb(event);
}
}

View file

@ -1,5 +1,4 @@
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#ifndef TUXEDO_KEYBOARD_H
#define TUXEDO_KEYBOARD_H
@ -13,6 +12,6 @@ struct clevo_interface_t {
};
u32 clevo_keyboard_add_interface(struct clevo_interface_t *new_interface);
u32 clevo_keyboard_remove_interface(struct clevo_interface_t *new_interface);
u32 clevo_keyboard_remove_interface(struct clevo_interface_t *interface);
#endif

View file

@ -18,8 +18,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "tuxedo_keyboard_common.h"
#include "tuxedo_keyboard.h"
#include "ck.h"
#include "clevo_interfaces.h"
#define CLEVO_EVENT_GUID "ABBC0F6B-8EA1-11D1-00A0-C90629100000"
#define CLEVO_EMAIL_GUID "ABBC0F6C-8EA1-11D1-00A0-C90629100000"

View file

@ -20,7 +20,6 @@
#define pr_fmt(fmt) "tuxedo_keyboard" ": " fmt
#include "tuxedo_keyboard.h"
#include "tuxedo_keyboard_common.h"
#include "clevo_keyboard.h"
#include "uniwill_keyboard.h"

View file

@ -1,21 +0,0 @@
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/acpi.h>
#include <linux/dmi.h>
#include <linux/platform_device.h>
#include <linux/input.h>
#include <linux/input/sparse-keymap.h>
#ifndef TUXEDO_KEYBOARD_H
#define TUXEDO_KEYBOARD_H
struct clevo_interface_t {
char *string_id;
void (*event_callb)(u32);
u32 (*method_call)(u8, u32, u32*);
};
u32 clevo_keyboard_add_interface(struct clevo_interface_t *new_interface);
#endif