linux/drivers/iio/pressure/bmp280-spi.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * SPI interface for the BMP280 driver
 *
 * Inspired by the older BMP085 driver drivers/misc/bmp085-spi.c
 */
#include <linux/bits.h>
#include <linux/err.h>
#include <linux/module.h>
#include <linux/regmap.h>
#include <linux/spi/spi.h>

#include "bmp280.h"

static int bmp280_regmap_spi_write(void *context, const void *data,
				   size_t count)
{}

static int bmp280_regmap_spi_read(void *context, const void *reg,
				  size_t reg_size, void *val, size_t val_size)
{}

static int bmp380_regmap_spi_read(void *context, const void *reg,
				  size_t reg_size, void *val, size_t val_size)
{}

static const struct regmap_bus bmp280_regmap_bus =;

static const struct regmap_bus bmp380_regmap_bus =;

static int bmp280_spi_probe(struct spi_device *spi)
{}

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

static const struct spi_device_id bmp280_spi_id[] =;
MODULE_DEVICE_TABLE(spi, bmp280_spi_id);

static struct spi_driver bmp280_spi_driver =;
module_spi_driver();

MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_IMPORT_NS();