diff options
author | Markus Pargmann <mpa@pengutronix.de> | 2015-08-19 15:12:45 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-08-31 19:04:23 +0300 |
commit | 13426454b6493a847cebe276fb1ec3a7f1d48d0e (patch) | |
tree | 44e0323857282192fc582d197e5b2581b50c300a /drivers/iio/gyro/bmg160.h | |
parent | cb119d5350839297bbe8a382dbb2feff545742b5 (diff) | |
download | linux-13426454b6493a847cebe276fb1ec3a7f1d48d0e.tar.xz |
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.h | 10 |
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_ */ |