#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/types.h>
#include <linux/input.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/irq.h>
#include <linux/io.h>
#include <linux/acpi.h>
enum { … };
struct event_dev { … };
static irqreturn_t events_interrupt(int irq, void *dev_id)
{ … }
static void events_import_bits(struct event_dev *edev,
unsigned long bits[], unsigned int type, size_t count)
{ … }
static void events_import_abs_params(struct event_dev *edev)
{ … }
static int events_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id goldfish_events_of_match[] = …;
MODULE_DEVICE_TABLE(of, goldfish_events_of_match);
#ifdef CONFIG_ACPI
static const struct acpi_device_id goldfish_events_acpi_match[] = …;
MODULE_DEVICE_TABLE(acpi, goldfish_events_acpi_match);
#endif
static struct platform_driver events_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;