linux/drivers/input/misc/adxl34x-spi.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * ADLX345/346 Three-Axis Digital Accelerometers (SPI Interface)
 *
 * Enter bugs at http://blackfin.uclinux.org/
 *
 * Copyright (C) 2009 Michael Hennerich, Analog Devices Inc.
 */

#include <linux/input.h>	/* BUS_SPI */
#include <linux/module.h>
#include <linux/spi/spi.h>
#include <linux/pm.h>
#include <linux/types.h>
#include "adxl34x.h"

#define MAX_SPI_FREQ_HZ
#define MAX_FREQ_NO_FIFODELAY
#define ADXL34X_CMD_MULTB
#define ADXL34X_CMD_READ
#define ADXL34X_WRITECMD(reg)
#define ADXL34X_READCMD(reg)
#define ADXL34X_READMB_CMD(reg)

static int adxl34x_spi_read(struct device *dev, unsigned char reg)
{}

static int adxl34x_spi_write(struct device *dev,
			     unsigned char reg, unsigned char val)
{}

static int adxl34x_spi_read_block(struct device *dev,
				  unsigned char reg, int count,
				  void *buf)
{}

static const struct adxl34x_bus_ops adxl34x_spi_bops =;

static int adxl34x_spi_probe(struct spi_device *spi)
{}

static struct spi_driver adxl34x_driver =;

module_spi_driver();

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