summaryrefslogtreecommitdiffstats
path: root/drivers/iio/gyro/bmg160.h
diff options
context:
space:
mode:
authorMarkus Pargmann2015-08-19 14:12:45 +0200
committerJonathan Cameron2015-08-31 18:04:23 +0200
commit13426454b6493a847cebe276fb1ec3a7f1d48d0e (patch)
tree44e0323857282192fc582d197e5b2581b50c300a /drivers/iio/gyro/bmg160.h
parentiio: proximity: add support for PulsedLight LIDAR (diff)
downloadkernel-qcow2-linux-13426454b6493a847cebe276fb1ec3a7f1d48d0e.tar.gz
kernel-qcow2-linux-13426454b6493a847cebe276fb1ec3a7f1d48d0e.tar.xz
kernel-qcow2-linux-13426454b6493a847cebe276fb1ec3a7f1d48d0e.zip
iio: bmg160: Separate i2c and core driver
This patch separates the core driver using regmap and the i2c driver which creates the i2c regmap. Also in the Kconfig file BMG160 and BMG160_I2C are separate now. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/gyro/bmg160.h')
-rw-r--r--drivers/iio/gyro/bmg160.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/iio/gyro/bmg160.h b/drivers/iio/gyro/bmg160.h
new file mode 100644
index 000000000000..72db723c8fb6
--- /dev/null
+++ b/drivers/iio/gyro/bmg160.h
@@ -0,0 +1,10 @@
+#ifndef BMG160_H_
+#define BMG160_H_
+
+extern const struct dev_pm_ops bmg160_pm_ops;
+
+int bmg160_core_probe(struct device *dev, struct regmap *regmap, int irq,
+ const char *name);
+void bmg160_core_remove(struct device *dev);
+
+#endif /* BMG160_H_ */