summaryrefslogtreecommitdiff
path: root/drivers/iio/magnetometer/Kconfig
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@intel.com>2016-04-15 17:13:09 +0300
committerJonathan Cameron <jic23@kernel.org>2016-04-18 20:44:40 +0100
commit761b7910d4b4f0e7d283873b701ca83beacd70a5 (patch)
treef5d66d5c6eaec9ce92d24b17de71aaa8d1ad058b /drivers/iio/magnetometer/Kconfig
parent922b3aa6e74e4e1cac95cf4ab88ecc0fd5162c89 (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/Kconfig')
-rw-r--r--drivers/iio/magnetometer/Kconfig17
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/iio/magnetometer/Kconfig b/drivers/iio/magnetometer/Kconfig
index d9834ed023db..4972f9d17023 100644
--- a/drivers/iio/magnetometer/Kconfig
+++ b/drivers/iio/magnetometer/Kconfig
@@ -27,22 +27,25 @@ config AK09911
Deprecated: AK09911 is now supported by AK8975 driver.
config BMC150_MAGN
- tristate "Bosch BMC150 Magnetometer Driver"
- depends on I2C
- select REGMAP_I2C
+ tristate
select IIO_BUFFER
select IIO_TRIGGERED_BUFFER
- help
- Say yes here to build support for the BMC150 magnetometer.
- Currently this only supports the device via an i2c interface.
+config BMC150_MAGN_I2C
+ tristate "Bosch BMC150 I2C Magnetometer Driver"
+ depends on I2C
+ select BMC150_MAGN
+ select REGMAP_I2C
+ help
+ Say yes here to build support for the BMC150 magnetometer with
+ I2C interface.
This is a combo module with both accelerometer and magnetometer.
This driver is only implementing magnetometer part, which has
its own address and register map.
To compile this driver as a module, choose M here: the module will be
- called bmc150_magn.
+ called bmc150_magn_i2c.
config MAG3110
tristate "Freescale MAG3110 3-Axis Magnetometer"