iio: magn: Add support for BMC150 magnetometer
authorIrina Tirdea <irina.tirdea@intel.com>
Wed, 29 Apr 2015 18:16:37 +0000 (21:16 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 10 May 2015 19:31:43 +0000 (20:31 +0100)
commitc91746a2361d75bb8ded6ef4813a4a2dcdcd845e
tree4b9536a452e67f0eb5c44af46634d9f11397da27
parent9291766476f3b067c740fe9cc0b4cd78ace27409
iio: magn: Add support for BMC150 magnetometer

Add support for the Bosh BMC150 Magnetometer.
The specification can be downloaded from:
http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf.
The chip contains both an accelerometer and a magnetometer.
This patch adds support only for the magnetometer part.

The temperature compensation formulas are based on bmm050_api.c
authored by contact@bosch.sensortec.com.

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/Kconfig
drivers/iio/magnetometer/Makefile
drivers/iio/magnetometer/bmc150_magn.c [new file with mode: 0644]