linux/drivers/iio/pressure/mpl115.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * mpl115.c - Support for Freescale MPL115A pressure/temperature sensor
 *
 * Copyright (c) 2014 Peter Meerwald <[email protected]>
 *
 * TODO: synchronization with system suspend
 */

#include <linux/module.h>
#include <linux/iio/iio.h>
#include <linux/delay.h>
#include <linux/gpio/consumer.h>

#include "mpl115.h"

#define MPL115_PADC
#define MPL115_TADC
#define MPL115_A0
#define MPL115_B1
#define MPL115_B2
#define MPL115_C12
#define MPL115_CONVERT

struct mpl115_data {};

static int mpl115_request(struct mpl115_data *data)
{}

static int mpl115_comp_pressure(struct mpl115_data *data, int *val, int *val2)
{}

static int mpl115_read_temp(struct mpl115_data *data)
{}

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

static const struct iio_chan_spec mpl115_channels[] =;

static const struct iio_info mpl115_info =;

int mpl115_probe(struct device *dev, const char *name,
			const struct mpl115_ops *ops)
{}
EXPORT_SYMBOL_NS_GPL();

static int mpl115_runtime_suspend(struct device *dev)
{}

static int mpl115_runtime_resume(struct device *dev)
{}

EXPORT_NS_RUNTIME_DEV_PM_OPS(mpl115_dev_pm_ops, mpl115_runtime_suspend,
			  mpl115_runtime_resume, NULL, IIO_MPL115);

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