#include <linux/module.h>
#include <linux/dmi.h>
#include <linux/i8042.h>
#include <linux/io.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <linux/rfkill.h>
#define A1655_WIFI_COMMAND …
#define A1655_WIFI_ON …
#define A1655_WIFI_OFF …
static int amilo_a1655_rfkill_set_block(void *data, bool blocked)
{ … }
static const struct rfkill_ops amilo_a1655_rfkill_ops = …;
#define M7440_PORT1 …
#define M7440_PORT2 …
#define M7440_RADIO_ON1 …
#define M7440_RADIO_ON2 …
#define M7440_RADIO_OFF1 …
#define M7440_RADIO_OFF2 …
static int amilo_m7440_rfkill_set_block(void *data, bool blocked)
{ … }
static const struct rfkill_ops amilo_m7440_rfkill_ops = …;
static const struct dmi_system_id amilo_rfkill_id_table[] = …;
static struct platform_device *amilo_rfkill_pdev;
static struct rfkill *amilo_rfkill_dev;
static int amilo_rfkill_probe(struct platform_device *device)
{ … }
static void amilo_rfkill_remove(struct platform_device *device)
{ … }
static struct platform_driver amilo_rfkill_driver = …;
static int __init amilo_rfkill_init(void)
{ … }
static void __exit amilo_rfkill_exit(void)
{ … }
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_DEVICE_TABLE(dmi, amilo_rfkill_id_table);
module_init(…) …;
module_exit(amilo_rfkill_exit);