linux/drivers/input/misc/stpmic1_onkey.c

// SPDX-License-Identifier: GPL-2.0
// Copyright (C) STMicroelectronics 2018
// Author: Pascal Paillet <[email protected]> for STMicroelectronics.

#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/mfd/stpmic1.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/regmap.h>

/**
 * struct stpmic1_onkey - OnKey data
 * @input_dev:		pointer to input device
 * @irq_falling:	irq that we are hooked on to
 * @irq_rising:		irq that we are hooked on to
 */
struct stpmic1_onkey {};

static irqreturn_t onkey_falling_irq(int irq, void *ponkey)
{}

static irqreturn_t onkey_rising_irq(int irq, void *ponkey)
{}

static int stpmic1_onkey_probe(struct platform_device *pdev)
{}

static int stpmic1_onkey_suspend(struct device *dev)
{}

static int stpmic1_onkey_resume(struct device *dev)
{}

static DEFINE_SIMPLE_DEV_PM_OPS(stpmic1_onkey_pm,
				stpmic1_onkey_suspend,
				stpmic1_onkey_resume);

static const struct of_device_id of_stpmic1_onkey_match[] =;

MODULE_DEVICE_TABLE(of, of_stpmic1_onkey_match);

static struct platform_driver stpmic1_onkey_driver =;
module_platform_driver();

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