OSDN Git Service

iio: accel: bma180: BMA254 support
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Dec 2019 21:38:19 +0000 (22:38 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 30 Dec 2019 16:29:09 +0000 (16:29 +0000)
commitc1d1c4a62db5c4745b9e15cfee0daf0f774f73fc
treeae7f62cc4f77a9d56277c2d678dbfa3fd8cc967c
parentae9685992cd542b7881ff1d64a4bfd7ba509c3bb
iio: accel: bma180: BMA254 support

This adds support for the BMA254 variant of this
accelerometer. The only difference for the simple IIO
driver is that values are 12 bit and the temperature
offset differs by 1 degree.

Whilst wildcards in naming are normally frowned upon:

The cases where I have labeled variables "25x" is where the
models are identical, so as to make things easier for people
that want to add support for BMA253 and BMA255.

Cc: Peter Meerwald <pmeerw@pmeerw.net>
Cc: Oleksandr Kravchenko <o.v.kravchenko@globallogic.com>
Cc: devicetree@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/accel/bma180.txt
drivers/iio/accel/Kconfig
drivers/iio/accel/bma180.c