linux/drivers/input/misc/gpio_decoder.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
 *
 * A generic driver to read multiple gpio lines and translate the
 * encoded numeric value into an input event.
 */

#include <linux/device.h>
#include <linux/gpio/consumer.h>
#include <linux/input.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>

struct gpio_decoder {};

static int gpio_decoder_get_gpios_state(struct gpio_decoder *decoder)
{}

static void gpio_decoder_poll_gpios(struct input_dev *input)
{}

static int gpio_decoder_probe(struct platform_device *pdev)
{}

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

static struct platform_driver gpio_decoder_driver =;
module_platform_driver();

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