summaryrefslogtreecommitdiff
path: root/drivers/iio/accel/adxl372.h
diff options
context:
space:
mode:
authorStefan Popa <stefan.popa@analog.com>2018-09-04 17:11:31 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-09-08 17:28:27 +0300
commitd9e8fd0421c2047ac233141612a433490963d211 (patch)
treefd59276ecda29f34c1aaa3a7f32ea70b0dad3f99 /drivers/iio/accel/adxl372.h
parent7ac346823bbb284e9e66a3d4044c108b99c7149c (diff)
downloadlinux-d9e8fd0421c2047ac233141612a433490963d211.tar.xz
iio: adxl372: Refactor the driver
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>
Diffstat (limited to 'drivers/iio/accel/adxl372.h')
-rw-r--r--drivers/iio/accel/adxl372.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/iio/accel/adxl372.h b/drivers/iio/accel/adxl372.h
new file mode 100644
index 000000000000..5da89b19c17e
--- /dev/null
+++ b/drivers/iio/accel/adxl372.h
@@ -0,0 +1,15 @@
+/* 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_ */