linux/drivers/platform/x86/winmate-fm07-keys.c

// SPDX-License-Identifier: GPL-2.0
//
// Driver for the Winmate FM07 front-panel keys
//
// Author: Daniel Beer <[email protected]>

#include <linux/init.h>
#include <linux/module.h>
#include <linux/input.h>
#include <linux/ioport.h>
#include <linux/platform_device.h>
#include <linux/dmi.h>
#include <linux/io.h>

#define DRV_NAME

#define PORT_CMD
#define PORT_DATA

#define EC_ADDR_KEYS
#define EC_CMD_READ

#define BASE_KEY
#define NUM_KEYS

/* Typically we're done in fewer than 10 iterations */
#define LOOP_TIMEOUT

static void fm07keys_poll(struct input_dev *input)
{}

static int fm07keys_probe(struct platform_device *pdev)
{}

static struct platform_driver fm07keys_driver =;

static struct platform_device *dev;

static const struct dmi_system_id fm07keys_dmi_table[] __initconst =;

MODULE_DEVICE_TABLE(dmi, fm07keys_dmi_table);

static int __init fm07keys_init(void)
{}

static void __exit fm07keys_exit(void)
{}

module_init();
module_exit(fm07keys_exit);

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();