#include <linux/acpi.h>
#include <linux/device.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/input.h>
#include <linux/input/sparse-keymap.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/platform_device.h>
#include <linux/pm_wakeup.h>
#include <linux/printk.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
#include <linux/types.h>
#include <asm/unaligned.h>
#define DRIVER_NAME …
#define QUICKSTART_EVENT_RUNTIME …
struct quickstart_data { … };
static const struct key_entry quickstart_keymap[] = …;
static ssize_t button_id_show(struct device *dev, struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR_RO(button_id);
static struct attribute *quickstart_attrs[] = …;
ATTRIBUTE_GROUPS(…);
static void quickstart_notify(acpi_handle handle, u32 event, void *context)
{ … }
static int quickstart_get_ghid(struct quickstart_data *data)
{ … }
static void quickstart_notify_remove(void *context)
{ … }
static void quickstart_mutex_destroy(void *data)
{ … }
static int quickstart_probe(struct platform_device *pdev)
{ … }
static const struct acpi_device_id quickstart_device_ids[] = …;
MODULE_DEVICE_TABLE(acpi, quickstart_device_ids);
static struct platform_driver quickstart_platform_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;