Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Vlad Dogaru and committed by
Jonathan Cameron
da8ef4e7 9d174b49

+2
+2
drivers/iio/magnetometer/bmc150_magn.c
··· 1089 1089 1090 1090 static const struct acpi_device_id bmc150_magn_acpi_match[] = { 1091 1091 {"BMC150B", 0}, 1092 + {"BMC156B", 0}, 1092 1093 {}, 1093 1094 }; 1094 1095 MODULE_DEVICE_TABLE(acpi, bmc150_magn_acpi_match); 1095 1096 1096 1097 static const struct i2c_device_id bmc150_magn_id[] = { 1097 1098 {"bmc150_magn", 0}, 1099 + {"bmc156_magn", 0}, 1098 1100 {}, 1099 1101 }; 1100 1102 MODULE_DEVICE_TABLE(i2c, bmc150_magn_id);