linux/drivers/iio/position/iqs624-pos.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Azoteq IQS624/625 Angular Position Sensors
 *
 * Copyright (C) 2019 Jeff LaBundy <[email protected]>
 */

#include <linux/device.h>
#include <linux/iio/events.h>
#include <linux/iio/iio.h>
#include <linux/kernel.h>
#include <linux/mfd/iqs62x.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/notifier.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>

#define IQS624_POS_DEG_OUT

#define IQS624_POS_SCALE1
#define IQS624_POS_SCALE2

struct iqs624_pos_private {};

static int iqs624_pos_angle_en(struct iqs62x_core *iqs62x, bool angle_en)
{}

static int iqs624_pos_notifier(struct notifier_block *notifier,
			       unsigned long event_flags, void *context)
{}

static void iqs624_pos_notifier_unregister(void *context)
{}

static int iqs624_pos_angle_get(struct iqs62x_core *iqs62x, unsigned int *val)
{}

static int iqs624_pos_read_raw(struct iio_dev *indio_dev,
			       struct iio_chan_spec const *chan,
			       int *val, int *val2, long mask)
{}

static int iqs624_pos_read_event_config(struct iio_dev *indio_dev,
					const struct iio_chan_spec *chan,
					enum iio_event_type type,
					enum iio_event_direction dir)
{}

static int iqs624_pos_write_event_config(struct iio_dev *indio_dev,
					 const struct iio_chan_spec *chan,
					 enum iio_event_type type,
					 enum iio_event_direction dir,
					 int state)
{}

static const struct iio_info iqs624_pos_info =;

static const struct iio_event_spec iqs624_pos_events[] =;

static const struct iio_chan_spec iqs624_pos_channels[] =;

static int iqs624_pos_probe(struct platform_device *pdev)
{}

static struct platform_driver iqs624_pos_platform_driver =;
module_platform_driver();

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