mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
d9e8fd0421
This patch restructures the existing adxl372 driver by adding a module for SPI and a header file, while the baseline module deals with the chip-logic. This is a necessary step, as this driver should support in the future a similar device which differs only in the type of interface used (I2C instead of SPI). Signed-off-by: Stefan Popa <stefan.popa@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
16 lines
360 B
C
16 lines
360 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* ADXL372 3-Axis Digital Accelerometer
|
|
*
|
|
* Copyright 2018 Analog Devices Inc.
|
|
*/
|
|
|
|
#ifndef _ADXL372_H_
|
|
#define _ADXL372_H_
|
|
|
|
int adxl372_probe(struct device *dev, struct regmap *regmap,
|
|
int irq, const char *name);
|
|
bool adxl372_readable_noinc_reg(struct device *dev, unsigned int reg);
|
|
|
|
#endif /* _ADXL372_H_ */
|