#include <linux/input.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mfd/rave-sp.h>
#include <linux/platform_device.h>
#define RAVE_SP_EVNT_BUTTON_PRESS …
struct rave_sp_power_button { … };
static int rave_sp_power_button_event(struct notifier_block *nb,
unsigned long action, void *data)
{ … }
static int rave_sp_pwrbutton_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id rave_sp_pwrbutton_of_match[] = …;
static struct platform_driver rave_sp_pwrbutton_driver = …;
module_platform_driver(…) …;
MODULE_DEVICE_TABLE(of, rave_sp_pwrbutton_of_match);
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;