linux/drivers/iio/accel/adxl367_spi.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (C) 2021 Analog Devices, Inc.
 * Author: Cosmin Tanislav <[email protected]>
 */

#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/regmap.h>
#include <linux/spi/spi.h>

#include <linux/iio/iio.h>

#include "adxl367.h"

#define ADXL367_SPI_WRITE_COMMAND
#define ADXL367_SPI_READ_COMMAND
#define ADXL367_SPI_FIFO_COMMAND

struct adxl367_spi_state {};

static int adxl367_read_fifo(void *context, __be16 *fifo_buf,
			     unsigned int fifo_entries)
{}

static int adxl367_read(void *context, const void *reg_buf, size_t reg_size,
			void *val_buf, size_t val_size)
{}

static int adxl367_write(void *context, const void *val_buf, size_t val_size)
{}

static const struct regmap_bus adxl367_spi_regmap_bus =;

static const struct regmap_config adxl367_spi_regmap_config =;

static const struct adxl367_ops adxl367_spi_ops =;

static int adxl367_spi_probe(struct spi_device *spi)
{}

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

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

static struct spi_driver adxl367_spi_driver =;

module_spi_driver();

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