#include <linux/clk.h>
#include <linux/input.h>
#include <linux/input/matrix_keypad.h>
#include <linux/io.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#define ST_KEYSCAN_MAXKEYS …
#define KEYSCAN_CONFIG_OFF …
#define KEYSCAN_CONFIG_ENABLE …
#define KEYSCAN_DEBOUNCE_TIME_OFF …
#define KEYSCAN_MATRIX_STATE_OFF …
#define KEYSCAN_MATRIX_DIM_OFF …
#define KEYSCAN_MATRIX_DIM_X_SHIFT …
#define KEYSCAN_MATRIX_DIM_Y_SHIFT …
struct st_keyscan { … };
static irqreturn_t keyscan_isr(int irq, void *dev_id)
{ … }
static int keyscan_start(struct st_keyscan *keypad)
{ … }
static void keyscan_stop(struct st_keyscan *keypad)
{ … }
static int keyscan_open(struct input_dev *dev)
{ … }
static void keyscan_close(struct input_dev *dev)
{ … }
static int keypad_matrix_key_parse_dt(struct st_keyscan *keypad_data)
{ … }
static int keyscan_probe(struct platform_device *pdev)
{ … }
static int keyscan_suspend(struct device *dev)
{ … }
static int keyscan_resume(struct device *dev)
{ … }
static DEFINE_SIMPLE_DEV_PM_OPS(keyscan_dev_pm_ops,
keyscan_suspend, keyscan_resume);
static const struct of_device_id keyscan_of_match[] = …;
MODULE_DEVICE_TABLE(of, keyscan_of_match);
static struct platform_driver keyscan_device_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;