linux/drivers/input/misc/axp20x-pek.c

/*
 * axp20x power button driver.
 *
 * Copyright (C) 2013 Carlo Caione <[email protected]>
 *
 * 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/acpi.h>
#include <linux/errno.h>
#include <linux/irq.h>
#include <linux/init.h>
#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/mfd/axp20x.h>
#include <linux/module.h>
#include <linux/platform_data/x86/soc.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/slab.h>

#define AXP20X_PEK_STARTUP_MASK
#define AXP20X_PEK_SHUTDOWN_MASK

struct axp20x_info {};

struct axp20x_pek {};

struct axp20x_time {};

static const struct axp20x_time startup_time[] =;

static const struct axp20x_time axp221_startup_time[] =;

static const struct axp20x_time shutdown_time[] =;

static const struct axp20x_info axp20x_info =;

static const struct axp20x_info axp221_info =;

static ssize_t axp20x_show_attr(struct device *dev,
				const struct axp20x_time *time,
				unsigned int mask, char *buf)
{}

static ssize_t axp20x_show_attr_startup(struct device *dev,
					struct device_attribute *attr,
					char *buf)
{}

static ssize_t axp20x_show_attr_shutdown(struct device *dev,
					 struct device_attribute *attr,
					 char *buf)
{}

static ssize_t axp20x_store_attr(struct device *dev,
				 const struct axp20x_time *time,
				 unsigned int mask, const char *buf,
				 size_t count)
{}

static ssize_t axp20x_store_attr_startup(struct device *dev,
					 struct device_attribute *attr,
					 const char *buf, size_t count)
{}

static ssize_t axp20x_store_attr_shutdown(struct device *dev,
					  struct device_attribute *attr,
					  const char *buf, size_t count)
{}

static DEVICE_ATTR(startup, 0644, axp20x_show_attr_startup,
		   axp20x_store_attr_startup);
static DEVICE_ATTR(shutdown, 0644, axp20x_show_attr_shutdown,
		   axp20x_store_attr_shutdown);

static struct attribute *axp20x_attrs[] =;
ATTRIBUTE_GROUPS();

static irqreturn_t axp20x_pek_irq(int irq, void *pwr)
{}

static int axp20x_pek_probe_input_device(struct axp20x_pek *axp20x_pek,
					 struct platform_device *pdev)
{}

static bool axp20x_pek_should_register_input(struct axp20x_pek *axp20x_pek)
{}

static int axp20x_pek_probe(struct platform_device *pdev)
{}

static int axp20x_pek_suspend(struct device *dev)
{}

static int axp20x_pek_resume(struct device *dev)
{}

static int __maybe_unused axp20x_pek_resume_noirq(struct device *dev)
{}

static const struct dev_pm_ops axp20x_pek_pm_ops =;

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

static struct platform_driver axp20x_pek_driver =;
module_platform_driver();

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