#define pr_fmt(fmt) …
#include <linux/acpi.h>
#include <linux/device.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/sysfs.h>
#include <linux/types.h>
#include <linux/wmi.h>
#define INTEL_WMI_THUNDERBOLT_GUID …
static ssize_t force_power_store(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR_WO(force_power);
static struct attribute *tbt_attrs[] = …;
ATTRIBUTE_GROUPS(…);
static const struct wmi_device_id intel_wmi_thunderbolt_id_table[] = …;
static struct wmi_driver intel_wmi_thunderbolt_driver = …;
module_wmi_driver(…) …;
MODULE_DEVICE_TABLE(wmi, intel_wmi_thunderbolt_id_table);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;