iio: accel: bma180: Add support for bma023
authorJonathan Bakker <xc-racer2@live.ca>
Thu, 14 May 2020 20:48:59 +0000 (13:48 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 May 2020 15:03:31 +0000 (16:03 +0100)
commit891a00ec30b578c43c18ec11755c4ab5399d4ebc
tree24a1b13956576719cab3490f5bb1b873451e2706
parent8e2c7c6555f5fb09b3ed151c2be91ad4feadb046
iio: accel: bma180: Add support for bma023

The bma023 chip is similar enough to the bma180 and bma25x that the
same driver can support all of them.  The biggest differences are
the lack of a temperature channel and no low power but still working
mode.

The bma150 is a close relative of the bma023, but it does have a
temperature channel so support is not added for it.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Bakker <xc-racer2@live.ca>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/Kconfig
drivers/iio/accel/bma180.c