Skip to contentSkip to conversation

iio: accel: bmc150: Add support for BOSC0200 ACPI device id

PATCH In review Hans de Goede 2 participants 2 messages Jun 19, 2017 – Jun 20, 2017 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: accel: bmc150: Add support for BOSC0200 ACPI device id

Add support for the BOSC0200 ACPI device id used on some x86 tablets. note driver_data is not set to a specific model, driver_data is not used anyways (instead detection is done on the chip_id reg) and the 2 tablets with a BOSC0200 ACPI device id I've have 2 different chips, one has a BMA250E, the other a BMA222E.

---
 drivers/iio/accel/bmc150-accel-i2c.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/accel/bmc150-accel-i2c.c +1 -0
index 8ca8041267ef..f85014fbaa12 100644
@@ -64,6 +64,7 @@ static const struct acpi_device_id bmc150_accel_acpi_match[] = {
 	{"BMA250E",	bma250e},
 	{"BMA222E",	bma222e},
 	{"BMA0280",	bma280},
+	{"BOSC0200"},
 	{ },
 };
 MODULE_DEVICE_TABLE(acpi, bmc150_accel_acpi_match);
Signature · 1 line
2.13.0
maintainer
#1 lore raw
Quoted 7 lines · On Mon, 19 Jun 2017 08:22:25 +0200 Hans de Goede <[email protected]> wrote:

Add support for the BOSC0200 ACPI device id used on some x86 tablets. note driver_data is not set to a specific model, driver_data is not used anyways (instead detection is done on the chip_id reg) and the 2 tablets with a BOSC0200 ACPI device id I've have 2 different chips, one has a BMA250E, the other a BMA222E.

Applied to the togreg branch of iio.git. Initially pushed out as testing for the autobuilders to play with it.

Unfortunately I'm travelling currently so may or may not get another pull request in to Greg before the next merge window opens.

Jonathan

Quoted 16 lines
---
 drivers/iio/accel/bmc150-accel-i2c.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/accel/bmc150-accel-i2c.c +1 -0
index 8ca8041267ef..f85014fbaa12 100644
@@ -64,6 +64,7 @@ static const struct acpi_device_id bmc150_accel_acpi_match[] = {
 	{"BMA250E",	bma250e},
 	{"BMA222E",	bma222e},
 	{"BMA0280",	bma280},
+	{"BOSC0200"},
 	{ },
 };
 MODULE_DEVICE_TABLE(acpi, bmc150_accel_acpi_match);