linux/drivers/input/misc/hisi_powerkey.c

/*
 * Hisilicon PMIC powerkey driver
 *
 * Copyright (C) 2013 Hisilicon Ltd.
 * Copyright (C) 2015, 2016 Linaro Ltd.
 *
 * This file is subject to the terms and conditions of the GNU General
 * Public License. See the file "COPYING" in the main directory of this
 * archive for more details.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/reboot.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of_irq.h>
#include <linux/input.h>
#include <linux/slab.h>

/* the held interrupt will trigger after 4 seconds */
#define MAX_HELD_TIME

static irqreturn_t hi65xx_power_press_isr(int irq, void *q)
{}

static irqreturn_t hi65xx_power_release_isr(int irq, void *q)
{}

static irqreturn_t hi65xx_restart_toggle_isr(int irq, void *q)
{}

static const struct {} hi65xx_irq_info[] =;

static int hi65xx_powerkey_probe(struct platform_device *pdev)
{}

static struct platform_driver hi65xx_powerkey_driver =;
module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();