iio: accel: bmc150: Add support for dual-accelerometers with a DUAL250E HID
authorHans de Goede <hdegoede@redhat.com>
Sun, 23 May 2021 17:00:58 +0000 (19:00 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 9 Jun 2021 19:51:51 +0000 (20:51 +0100)
commit3aac11a7c2d1c6b165945893bdee43ea359d3e4f
treed4bbd020ad080ff575d605baebdb4a9f9b46cdfc
parent42d1c1dc0f91cae51781b4c5ccdb26989d7521dc
iio: accel: bmc150: Add support for dual-accelerometers with a DUAL250E HID

The Lenovo Yoga 300-11IBR has a ACPI fwnode with a HID of DUAL250E
which contains I2C and IRQ resources for 2 accelerometers, 1 in the
display and one in the base of the device. Add support for this.

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-5-hdegoede@redhat.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/bmc150-accel-i2c.c