iio: accel: st_accel: Add support for the SMO8840 ACPI id
authorHans de Goede <hdegoede@redhat.com>
Wed, 18 Apr 2018 12:33:18 +0000 (14:33 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Apr 2018 15:29:24 +0000 (16:29 +0100)
The Lenovo Ideapad Miix 320 uses an st accelerometer with an ACPI id
of SMO8840, add support for this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/st_accel_i2c.c

index 6bdec8c451e0b89965cc7731b4aaeb4489734618..056dddb2723609169babbf23d1b52ce44522cf73 100644 (file)
@@ -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},
        { },
 };