#include <linux/bitops.h>
#include <linux/clk.h>
#include <linux/input.h>
#include <linux/input/matrix_keypad.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/property.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#define MTK_KPD_NAME …
#define MTK_KPD_MEM …
#define MTK_KPD_DEBOUNCE …
#define MTK_KPD_DEBOUNCE_MASK …
#define MTK_KPD_DEBOUNCE_MAX_MS …
#define MTK_KPD_SEL …
#define MTK_KPD_SEL_DOUBLE_KP_MODE …
#define MTK_KPD_SEL_COL …
#define MTK_KPD_SEL_ROW …
#define MTK_KPD_SEL_COLMASK(c) …
#define MTK_KPD_SEL_ROWMASK(r) …
#define MTK_KPD_NUM_MEMS …
#define MTK_KPD_NUM_BITS …
struct mt6779_keypad { … };
static const struct regmap_config mt6779_keypad_regmap_cfg = …;
static irqreturn_t mt6779_keypad_irq_handler(int irq, void *dev_id)
{ … }
static void mt6779_keypad_calc_row_col_single(unsigned int key,
unsigned int *row,
unsigned int *col)
{ … }
static void mt6779_keypad_calc_row_col_double(unsigned int key,
unsigned int *row,
unsigned int *col)
{ … }
static int mt6779_keypad_pdrv_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id mt6779_keypad_of_match[] = …;
MODULE_DEVICE_TABLE(of, mt6779_keypad_of_match);
static struct platform_driver mt6779_keypad_pdrv = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;