linux/drivers/iio/adc/mp2629_adc.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * MP2629 Driver for ADC
 *
 * Copyright 2020 Monolithic Power Systems, Inc
 *
 * Author: Saravanan Sekar <[email protected]>
 */

#include <linux/iio/driver.h>
#include <linux/iio/iio.h>
#include <linux/iio/machine.h>
#include <linux/mfd/mp2629.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>

#define MP2629_REG_ADC_CTRL
#define MP2629_REG_BATT_VOLT
#define MP2629_REG_SYSTEM_VOLT
#define MP2629_REG_INPUT_VOLT
#define MP2629_REG_BATT_CURRENT
#define MP2629_REG_INPUT_CURRENT

#define MP2629_ADC_START
#define MP2629_ADC_CONTINUOUS

#define MP2629_MAP(_mp, _mpc)

#define MP2629_ADC_CHAN(_ch, _type)

struct mp2629_adc {};

static struct iio_chan_spec mp2629_channels[] =;

static struct iio_map mp2629_adc_maps[] =;

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

static const struct iio_info mp2629_adc_info =;

static int mp2629_adc_probe(struct platform_device *pdev)
{}

static void mp2629_adc_remove(struct platform_device *pdev)
{}

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

static struct platform_driver mp2629_adc_driver =;
module_platform_driver();

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