diff options
author | Daniel Baluta <daniel.baluta@intel.com> | 2016-04-15 17:13:09 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-04-18 20:44:40 +0100 |
commit | 761b7910d4b4f0e7d283873b701ca83beacd70a5 (patch) | |
tree | f5d66d5c6eaec9ce92d24b17de71aaa8d1ad058b /drivers/iio/magnetometer/bmc150_magn.h | |
parent | 922b3aa6e74e4e1cac95cf4ab88ecc0fd5162c89 (diff) |
iio: magn: Split bmc150 driver in common/i2c parts
This is useful for easily adding SPI support in later patches.
Now bmc150_magn exports core functions to be used by I2C/SPI drivers
instances. For the moment only I2C driver is supported.
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Acked-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/magnetometer/bmc150_magn.h')
-rw-r--r-- | drivers/iio/magnetometer/bmc150_magn.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/bmc150_magn.h b/drivers/iio/magnetometer/bmc150_magn.h new file mode 100644 index 000000000000..9a8e26812ca8 --- /dev/null +++ b/drivers/iio/magnetometer/bmc150_magn.h @@ -0,0 +1,11 @@ +#ifndef _BMC150_MAGN_H_ +#define _BMC150_MAGN_H_ + +extern const struct regmap_config bmc150_magn_regmap_config; +extern const struct dev_pm_ops bmc150_magn_pm_ops; + +int bmc150_magn_probe(struct device *dev, struct regmap *regmap, int irq, + const char *name); +int bmc150_magn_remove(struct device *dev); + +#endif /* _BMC150_MAGN_H_ */ |