linux/drivers/input/touchscreen/resistive-adc-touch.c

// SPDX-License-Identifier: GPL-2.0
/*
 * ADC generic resistive touchscreen (GRTS)
 * This is a generic input driver that connects to an ADC
 * given the channels in device tree, and reports events to the input
 * subsystem.
 *
 * Copyright (C) 2017,2018 Microchip Technology,
 * Author: Eugen Hristev <[email protected]>
 *
 */
#include <linux/input.h>
#include <linux/input/touchscreen.h>
#include <linux/iio/consumer.h>
#include <linux/iio/iio.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/property.h>

#define DRIVER_NAME
#define GRTS_DEFAULT_PRESSURE_MIN
#define GRTS_DEFAULT_PRESSURE_MAX
#define GRTS_MAX_POS_MASK
#define GRTS_MAX_CHANNELS

enum grts_ch_type {};

/**
 * struct grts_state - generic resistive touch screen information struct
 * @x_plate_ohms:	resistance of the X plate
 * @pressure_min:	number representing the minimum for the pressure
 * @pressure:		are we getting pressure info or not
 * @iio_chans:		list of channels acquired
 * @iio_cb:		iio_callback buffer for the data
 * @input:		the input device structure that we register
 * @prop:		touchscreen properties struct
 * @ch_map:		map of channels that are defined for the touchscreen
 */
struct grts_state {};

static int grts_cb(const void *data, void *private)
{}

static int grts_open(struct input_dev *dev)
{}

static void grts_close(struct input_dev *dev)
{}

static void grts_disable(void *data)
{}

static int grts_map_channel(struct grts_state *st, struct device *dev,
			    enum grts_ch_type type, const char *name,
			    bool optional)
{}

static int grts_get_properties(struct grts_state *st, struct device *dev)
{}

static int grts_probe(struct platform_device *pdev)
{}

static const struct of_device_id grts_of_match[] =;

MODULE_DEVICE_TABLE(of, grts_of_match);

static struct platform_driver grts_driver =;

module_platform_driver();

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