OSDN Git Service

iio: accel: bmc150: Set label based on accel-location for ACPI DUAL250E fwnodes
authorHans de Goede <hdegoede@redhat.com>
Sun, 23 May 2021 17:01:03 +0000 (19:01 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 9 Jun 2021 19:54:05 +0000 (20:54 +0100)
commite6148fe791071a091fe7fd8bc1d99ccc4958c70e
treee5748237f17da6ea2d2b0ad8429e7f3ad56950e7
parent61ddd0a75d14311b0c4d5de06bec7afeb8b21612
iio: accel: bmc150: Set label based on accel-location for ACPI DUAL250E fwnodes

Some Yoga laptops with 1 accelerometer in the display and 1 in the base,
use an ACPI HID of DUAL250E instead of BOSC0200.

Set the iio-device's label for DUAL250E devices to a value indicating which
sensor is which, mirroring how we do this for BOSC0200 dual sensor devices.

Note the DUAL250E fwnode unfortunately does not include a mount-matrix.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210523170103.176958-10-hdegoede@redhat.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/bmc150-accel-core.c