linux/drivers/iio/humidity/hts221_spi.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * STMicroelectronics hts221 spi driver
 *
 * Copyright 2016 STMicroelectronics Inc.
 *
 * Lorenzo Bianconi <[email protected]>
 */

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/spi/spi.h>
#include <linux/slab.h>
#include <linux/regmap.h>

#include "hts221.h"

#define HTS221_SPI_READ
#define HTS221_SPI_AUTO_INCREMENT

static const struct regmap_config hts221_spi_regmap_config =;

static int hts221_spi_probe(struct spi_device *spi)
{}

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

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

static struct spi_driver hts221_driver =;
module_spi_driver();

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