diff options
author | Vlad Dogaru <vlad.dogaru@intel.com> | 2015-06-12 11:31:39 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-06-21 14:57:19 +0100 |
commit | da8ef4e77d9dfe91d69033cfa05d9f3036fb8dfd (patch) | |
tree | bcd72de6a756ea8c6a2fb9ff3e661fd27a3241cc /drivers/iio/magnetometer | |
parent | 9d174b49ce05b63763e76f9f4373bc1b213ff584 (diff) | |
download | linux-da8ef4e77d9dfe91d69033cfa05d9f3036fb8dfd.tar.gz linux-da8ef4e77d9dfe91d69033cfa05d9f3036fb8dfd.tar.bz2 linux-da8ef4e77d9dfe91d69033cfa05d9f3036fb8dfd.zip |
iio: magn: bmc150: add support for bmc156
The BMC156 is a slightly less capable version of BMC150 which lacks
support for magnetometer thresholds. Since this driver does not support
those anyway, adding support is trivial.
Datasheet is available at
https://ae-bst.resource.bosch.com/media/products/dokumente/bmc156_1/BST-BMC156-DS000-01.pdf
Signed-off-by: Vlad Dogaru <vlad.dogaru@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/magnetometer')
-rw-r--r-- | drivers/iio/magnetometer/bmc150_magn.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/bmc150_magn.c b/drivers/iio/magnetometer/bmc150_magn.c index a0e64f19f4c4..cd002710dd02 100644 --- a/drivers/iio/magnetometer/bmc150_magn.c +++ b/drivers/iio/magnetometer/bmc150_magn.c @@ -1089,12 +1089,14 @@ static const struct dev_pm_ops bmc150_magn_pm_ops = { static const struct acpi_device_id bmc150_magn_acpi_match[] = { {"BMC150B", 0}, + {"BMC156B", 0}, {}, }; MODULE_DEVICE_TABLE(acpi, bmc150_magn_acpi_match); static const struct i2c_device_id bmc150_magn_id[] = { {"bmc150_magn", 0}, + {"bmc156_magn", 0}, {}, }; MODULE_DEVICE_TABLE(i2c, bmc150_magn_id); |