linux/drivers/iio/light/veml6070.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * veml6070.c - Support for Vishay VEML6070 UV A light sensor
 *
 * Copyright 2016 Peter Meerwald-Stadler <[email protected]>
 *
 * IIO driver for VEML6070 (7-bit I2C slave addresses 0x38 and 0x39)
 *
 * TODO: integration time, ACK signal
 */

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

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

#define VEML6070_DRV_NAME

#define VEML6070_ADDR_CONFIG_DATA_MSB
#define VEML6070_ADDR_DATA_LSB

#define VEML6070_COMMAND_ACK
#define VEML6070_COMMAND_IT
#define VEML6070_COMMAND_RSRVD
#define VEML6070_COMMAND_SD

#define VEML6070_IT_10

struct veml6070_data {};

static int veml6070_read(struct veml6070_data *data)
{}

static const struct iio_chan_spec veml6070_channels[] =;

static int veml6070_to_uv_index(unsigned val)
{}

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

static const struct iio_info veml6070_info =;

static int veml6070_probe(struct i2c_client *client)
{}

static void veml6070_remove(struct i2c_client *client)
{}

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

static struct i2c_driver veml6070_driver =;

module_i2c_driver();

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