mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
80503b23b2
Based on 1 normalized pattern(s): licensed under the gpl 2 or later extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 82 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Richard Fontana <rfontana@redhat.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190524100845.150836982@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
31 lines
797 B
C
31 lines
797 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* ADXL345/346 Three-Axis Digital Accelerometers (I2C/SPI Interface)
|
|
*
|
|
* Enter bugs at http://blackfin.uclinux.org/
|
|
*
|
|
* Copyright (C) 2009 Michael Hennerich, Analog Devices Inc.
|
|
*/
|
|
|
|
#ifndef _ADXL34X_H_
|
|
#define _ADXL34X_H_
|
|
|
|
struct device;
|
|
struct adxl34x;
|
|
|
|
struct adxl34x_bus_ops {
|
|
u16 bustype;
|
|
int (*read)(struct device *, unsigned char);
|
|
int (*read_block)(struct device *, unsigned char, int, void *);
|
|
int (*write)(struct device *, unsigned char, unsigned char);
|
|
};
|
|
|
|
void adxl34x_suspend(struct adxl34x *ac);
|
|
void adxl34x_resume(struct adxl34x *ac);
|
|
struct adxl34x *adxl34x_probe(struct device *dev, int irq,
|
|
bool fifo_delay_default,
|
|
const struct adxl34x_bus_ops *bops);
|
|
int adxl34x_remove(struct adxl34x *ac);
|
|
|
|
#endif
|