From: Vlad Dogaru <vlad.dogaru@intel.com>
To: irina.tirdea@intel.com, jic23@kernel.org, linux-iio@vger.kernel.org
Cc: Vlad Dogaru <vlad.dogaru@intel.com>
Subject: [PATCH 2/2] iio: magn: bmc150: add support for bmc156
Date: Fri, 12 Jun 2015 11:31:39 +0300 [thread overview]
Message-ID: <1434097899-13984-3-git-send-email-vlad.dogaru@intel.com> (raw)
In-Reply-To: <1434097899-13984-1-git-send-email-vlad.dogaru@intel.com>
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>
---
drivers/iio/magnetometer/bmc150_magn.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/iio/magnetometer/bmc150_magn.c b/drivers/iio/magnetometer/bmc150_magn.c
index a0e64f1..cd00271 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);
--
1.9.1
next prev parent reply other threads:[~2015-06-12 8:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-12 8:31 [PATCH 0/2] iio: bmc150: buffer cleanup and support for a new chip Vlad Dogaru
2015-06-12 8:31 ` [PATCH 1/2] iio: magn: bmc150: decouple buffer and trigger Vlad Dogaru
2015-06-13 18:04 ` Jonathan Cameron
2015-06-23 14:18 ` Tirdea, Irina
2015-06-21 13:57 ` Jonathan Cameron
2015-06-12 8:31 ` Vlad Dogaru [this message]
2015-06-21 13:57 ` [PATCH 2/2] iio: magn: bmc150: add support for bmc156 Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1434097899-13984-3-git-send-email-vlad.dogaru@intel.com \
--to=vlad.dogaru@intel.com \
--cc=irina.tirdea@intel.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox