summaryrefslogtreecommitdiff
path: root/drivers/iio/accel/adxl345.h
diff options
context:
space:
mode:
authorEva Rachel Retuya <eraretuya@gmail.com>2017-03-04 16:31:25 +0800
committerJonathan Cameron <jic23@kernel.org>2017-03-04 16:45:08 +0000
commit5170512cf6a17373b3a8bb63187a6e90ddf7c1ca (patch)
tree23477c75026e73231dda78d0dd9bca20739d39a8 /drivers/iio/accel/adxl345.h
parent31fd2c70b26d1fb803283c0488e3f84a2de1f329 (diff)
iio: accel: adxl345: Split driver into core and I2C
Move I2C-specific code into its own file and rely on regmap to access registers. The core code provides access to x, y, z and scale readings. Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/accel/adxl345.h')
-rw-r--r--drivers/iio/accel/adxl345.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/iio/accel/adxl345.h b/drivers/iio/accel/adxl345.h
new file mode 100644
index 000000000000..c1ddf3927c47
--- /dev/null
+++ b/drivers/iio/accel/adxl345.h
@@ -0,0 +1,18 @@
+/*
+ * ADXL345 3-Axis Digital Accelerometer
+ *
+ * Copyright (c) 2017 Eva Rachel Retuya <eraretuya@gmail.com>
+ *
+ * This file is subject to the terms and conditions of version 2 of
+ * the GNU General Public License. See the file COPYING in the main
+ * directory of this archive for more details.
+ */
+
+#ifndef _ADXL345_H_
+#define _ADXL345_H_
+
+int adxl345_core_probe(struct device *dev, struct regmap *regmap,
+ const char *name);
+int adxl345_core_remove(struct device *dev);
+
+#endif /* _ADXL345_H_ */