linux/drivers/iio/humidity/si7005.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * si7005.c - Support for Silabs Si7005 humidity and temperature sensor
 *
 * Copyright (c) 2014 Peter Meerwald <[email protected]>
 *
 * (7-bit I2C slave address 0x40)
 *
 * TODO: heater, fast mode, processed mode (temp. / linearity compensation)
 */

#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/delay.h>
#include <linux/module.h>
#include <linux/pm.h>

#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>

#define SI7005_STATUS
#define SI7005_DATA
#define SI7005_CONFIG
#define SI7005_ID

#define SI7005_STATUS_NRDY
#define SI7005_CONFIG_TEMP
#define SI7005_CONFIG_START

#define SI7005_ID_7005
#define SI7005_ID_7015

struct si7005_data {};

static int si7005_read_measurement(struct si7005_data *data, bool temp)
{}

static int si7005_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 si7005_channels[] =;

static const struct iio_info si7005_info =;

static int si7005_probe(struct i2c_client *client)
{}

static const struct i2c_device_id si7005_id[] =;
MODULE_DEVICE_TABLE(i2c, si7005_id);

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

static struct i2c_driver si7005_driver =;
module_i2c_driver();

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