#include <linux/kernel.h>
#include <linux/acpi.h>
#include <linux/debugfs.h>
#include <linux/module.h>
#include <linux/uaccess.h>
#include "internal.h"
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
static bool write_support;
module_param_hw(write_support, bool, other, 0644);
MODULE_PARM_DESC(…) …;
#define EC_SPACE_SIZE …
static struct dentry *acpi_ec_debugfs_dir;
static ssize_t acpi_ec_read_io(struct file *f, char __user *buf,
size_t count, loff_t *off)
{ … }
static ssize_t acpi_ec_write_io(struct file *f, const char __user *buf,
size_t count, loff_t *off)
{ … }
static const struct file_operations acpi_ec_io_ops = …;
static void acpi_ec_add_debugfs(struct acpi_ec *ec, unsigned int ec_device_count)
{ … }
static int __init acpi_ec_sys_init(void)
{ … }
static void __exit acpi_ec_sys_exit(void)
{ … }
module_init(…) …;
module_exit(acpi_ec_sys_exit);