Contributors: 4
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Michael Hennerich |
103 |
91.96% |
1 |
25.00% |
Jonathan Cameron |
6 |
5.36% |
1 |
25.00% |
Thomas Gleixner |
2 |
1.79% |
1 |
25.00% |
Uwe Kleine-König |
1 |
0.89% |
1 |
25.00% |
Total |
112 |
|
4 |
|
/* 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);
};
struct adxl34x *adxl34x_probe(struct device *dev, int irq,
bool fifo_delay_default,
const struct adxl34x_bus_ops *bops);
void adxl34x_remove(struct adxl34x *ac);
extern const struct dev_pm_ops adxl34x_pm;
#endif