linux/drivers/input/keyboard/samsung-keypad.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Samsung keypad driver
 *
 * Copyright (C) 2010 Samsung Electronics Co.Ltd
 * Author: Joonyoung Shim <[email protected]>
 * Author: Donghwa Lee <[email protected]>
 */

#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pm.h>
#include <linux/pm_runtime.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/sched.h>
#include <linux/input/samsung-keypad.h>

#define SAMSUNG_KEYIFCON
#define SAMSUNG_KEYIFSTSCLR
#define SAMSUNG_KEYIFCOL
#define SAMSUNG_KEYIFROW
#define SAMSUNG_KEYIFFC

/* SAMSUNG_KEYIFCON */
#define SAMSUNG_KEYIFCON_INT_F_EN
#define SAMSUNG_KEYIFCON_INT_R_EN
#define SAMSUNG_KEYIFCON_DF_EN
#define SAMSUNG_KEYIFCON_FC_EN
#define SAMSUNG_KEYIFCON_WAKEUPEN

/* SAMSUNG_KEYIFSTSCLR */
#define SAMSUNG_KEYIFSTSCLR_P_INT_MASK
#define SAMSUNG_KEYIFSTSCLR_R_INT_MASK
#define SAMSUNG_KEYIFSTSCLR_R_INT_OFFSET
#define S5PV210_KEYIFSTSCLR_P_INT_MASK
#define S5PV210_KEYIFSTSCLR_R_INT_MASK
#define S5PV210_KEYIFSTSCLR_R_INT_OFFSET

/* SAMSUNG_KEYIFCOL */
#define SAMSUNG_KEYIFCOL_MASK
#define S5PV210_KEYIFCOLEN_MASK

/* SAMSUNG_KEYIFROW */
#define SAMSUNG_KEYIFROW_MASK
#define S5PV210_KEYIFROW_MASK

/* SAMSUNG_KEYIFFC */
#define SAMSUNG_KEYIFFC_MASK

enum samsung_keypad_type {};

struct samsung_keypad {};

static void samsung_keypad_scan(struct samsung_keypad *keypad,
				unsigned int *row_state)
{}

static bool samsung_keypad_report(struct samsung_keypad *keypad,
				  unsigned int *row_state)
{}

static irqreturn_t samsung_keypad_irq(int irq, void *dev_id)
{}

static void samsung_keypad_start(struct samsung_keypad *keypad)
{}

static void samsung_keypad_stop(struct samsung_keypad *keypad)
{}

static int samsung_keypad_open(struct input_dev *input_dev)
{}

static void samsung_keypad_close(struct input_dev *input_dev)
{}

#ifdef CONFIG_OF
static struct samsung_keypad_platdata *
samsung_keypad_parse_dt(struct device *dev)
{}
#else
static struct samsung_keypad_platdata *
samsung_keypad_parse_dt(struct device *dev)
{
	dev_err(dev, "no platform data defined\n");

	return ERR_PTR(-EINVAL);
}
#endif

static int samsung_keypad_probe(struct platform_device *pdev)
{}

static void samsung_keypad_remove(struct platform_device *pdev)
{}

static int samsung_keypad_runtime_suspend(struct device *dev)
{}

static int samsung_keypad_runtime_resume(struct device *dev)
{}

static void samsung_keypad_toggle_wakeup(struct samsung_keypad *keypad,
					 bool enable)
{}

static int samsung_keypad_suspend(struct device *dev)
{}

static int samsung_keypad_resume(struct device *dev)
{}

static const struct dev_pm_ops samsung_keypad_pm_ops =;

#ifdef CONFIG_OF
static const struct of_device_id samsung_keypad_dt_match[] =;
MODULE_DEVICE_TABLE(of, samsung_keypad_dt_match);
#endif

static const struct platform_device_id samsung_keypad_driver_ids[] =;
MODULE_DEVICE_TABLE(platform, samsung_keypad_driver_ids);

static struct platform_driver samsung_keypad_driver =;
module_platform_driver();

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