#include <linux/init.h>
#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/mfd/tps65217.h>
#include <linux/mfd/tps65218.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/slab.h>
struct tps6521x_data { … };
static const struct tps6521x_data tps65217_data = …;
static const struct tps6521x_data tps65218_data = …;
struct tps6521x_pwrbutton { … };
static const struct of_device_id of_tps6521x_pb_match[] = …;
MODULE_DEVICE_TABLE(of, of_tps6521x_pb_match);
static irqreturn_t tps6521x_pb_irq(int irq, void *_pwr)
{ … }
static int tps6521x_pb_probe(struct platform_device *pdev)
{ … }
static const struct platform_device_id tps6521x_pwrbtn_id_table[] = …;
MODULE_DEVICE_TABLE(platform, tps6521x_pwrbtn_id_table);
static struct platform_driver tps6521x_pb_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;