linux/drivers/input/joystick/adc-joystick.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Input driver for joysticks connected over ADC.
 * Copyright (c) 2019-2020 Artur Rojek <[email protected]>
 */
#include <linux/ctype.h>
#include <linux/input.h>
#include <linux/iio/iio.h>
#include <linux/iio/consumer.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/property.h>

#include <linux/unaligned.h>

struct adc_joystick_axis {};

struct adc_joystick {};

static int adc_joystick_invert(struct input_dev *dev,
			       unsigned int axis, int val)
{}

static void adc_joystick_poll(struct input_dev *input)
{}

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

static int adc_joystick_open(struct input_dev *dev)
{}

static void adc_joystick_close(struct input_dev *dev)
{}

static void adc_joystick_cleanup(void *data)
{}

static int adc_joystick_set_axes(struct device *dev, struct adc_joystick *joy)
{}


static int adc_joystick_count_channels(struct device *dev,
				       const struct iio_channel *chans,
				       bool polled,
				       unsigned int *num_chans)
{}

static int adc_joystick_probe(struct platform_device *pdev)
{}

static const struct of_device_id adc_joystick_of_match[] =;
MODULE_DEVICE_TABLE(of, adc_joystick_of_match);

static struct platform_driver adc_joystick_driver =;
module_platform_driver();

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