Skip to contentSkip to conversation

iio: accel: st_accel: Add support for the SMO8840 ACPI id

PATCH In review Hans de Goede 2 participants 2 messages Apr 18, 2018 – Apr 21, 2018 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: accel: st_accel: Add support for the SMO8840 ACPI id

The Lenovo Ideapad Miix 320 uses an st accelerometer with an ACPI id of SMO8840, add support for this.

---
 drivers/iio/accel/st_accel_i2c.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/accel/st_accel_i2c.c +1 -0
index 6bdec8c451e0..056dddb27236 100644
@@ -107,6 +107,7 @@ MODULE_DEVICE_TABLE(of, st_accel_of_match);
 
 #ifdef CONFIG_ACPI
 static const struct acpi_device_id st_accel_acpi_match[] = {
+	{"SMO8840", LNG2DM},
 	{"SMO8A90", LNG2DM},
 	{ },
 };
Signature · 1 line
2.17.0
maintainer
#1 lore raw
Quoted 4 lines · On Wed, 18 Apr 2018 14:33:18 +0200 Hans de Goede <[email protected]> wrote:

The Lenovo Ideapad Miix 320 uses an st accelerometer with an ACPI id of SMO8840, add support for this.

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

Thanks,

Jonathan

Quoted 16 lines
---
 drivers/iio/accel/st_accel_i2c.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/accel/st_accel_i2c.c +1 -0
index 6bdec8c451e0..056dddb27236 100644
@@ -107,6 +107,7 @@ MODULE_DEVICE_TABLE(of, st_accel_of_match);
 
 #ifdef CONFIG_ACPI
 static const struct acpi_device_id st_accel_acpi_match[] = {
+	{"SMO8840", LNG2DM},
 	{"SMO8A90", LNG2DM},
 	{ },
 };