Skip to content
Commit 0ad4bf37 authored by Bastien Nocera's avatar Bastien Nocera Committed by Jonathan Cameron
Browse files

iio:accel:bmc150-accel: Use the chip ID to detect sensor variant



Instead of using the I2C or ACPI ID to determine which variant of
the chipset to use, determine that from the chip ID.

Under Windows, the same driver is used for those variants and, despite
incorrect ACPI data, it is able to load and operate the accelerometer.

Fixes the accelerometer failing with:
bmc150_accel i2c-BMA250E:00: Invalid chip f8
on the WinBook TW100

Signed-off-by: default avatarBastien Nocera <hadess@hadess.net>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent c4eaab79
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment