summaryrefslogtreecommitdiffstats
path: root/drivers/iio/magnetometer/bmc150_magn_i2c.c
Commit message (Collapse)AuthorAgeFilesLines
* iio: magnetometer: bmc150_magn_i2c: Add OF device ID tableJavier Martinez Canillas2017-03-191-0/+9
| | | | | | | | | | | | | The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:<device>. But this could change in the future so the correct approach is to have an OF device ID table if the devices are registered via OF. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
* iio: magn: Add support for BMM150 magnetometerDaniel Baluta2016-05-211-0/+3
| | | | | | | | | | | BMM150 is register compatible with magnetometer part of BMC156. Datasheet is at: http://www.mouser.com/ds/2/783/BST-BMM150-DS001-01-786480.pdf Signed-off-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
* iio: magn: Split bmc150 driver in common/i2c partsDaniel Baluta2016-04-181-0/+77
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>