iio: accel: bma180: Add support for BMA250E
authorHans de Goede <hdegoede@redhat.com>
Tue, 16 May 2017 12:51:58 +0000 (14:51 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 21 May 2017 14:06:16 +0000 (15:06 +0100)
commitf1320b09517bceb261fed887fe261d6cbab2094e
tree11113f9d6adfcc552f0fde8891367ef85b1e4060
parent9ece370b02f912bedff217b53f6f8cfbef0e93eb
iio: accel: bma180: Add support for BMA250E

The BMA250E adds a new fifo mode and is fully backwards compatible
with the BMA250, but with a different chip-id.

This commit adds support for it by adjusting the chip-id check and
otherwise treating it as a regular BMA250.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/bma180.c