Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / input / misc / adxl34x.h
blob718e90c2046d8c2a7e6361e0adecf910ad2091f6
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * ADXL345/346 Three-Axis Digital Accelerometers (I2C/SPI Interface)
5 * Enter bugs at http://blackfin.uclinux.org/
7 * Copyright (C) 2009 Michael Hennerich, Analog Devices Inc.
8 */
10 #ifndef _ADXL34X_H_
11 #define _ADXL34X_H_
13 struct device;
14 struct adxl34x;
16 struct adxl34x_bus_ops {
17 u16 bustype;
18 int (*read)(struct device *, unsigned char);
19 int (*read_block)(struct device *, unsigned char, int, void *);
20 int (*write)(struct device *, unsigned char, unsigned char);
23 struct adxl34x *adxl34x_probe(struct device *dev, int irq,
24 bool fifo_delay_default,
25 const struct adxl34x_bus_ops *bops);
27 extern const struct dev_pm_ops adxl34x_pm;
28 extern const struct attribute_group *adxl34x_groups[];
30 #endif