iio: accel: bma180: Prepare for different reset values
authorJonathan Bakker <xc-racer2@live.ca>
Thu, 14 May 2020 20:48:55 +0000 (13:48 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 May 2020 14:58:19 +0000 (15:58 +0100)
commitf9992af62fbf3a50d89d1f3914b2ff5cda187466
tree512a3eac151d910cd15c4483eb6039718db11629
parentcef077e6aa4c7dbe2f23e1201cf705f9540ec467
iio: accel: bma180: Prepare for different reset values

Some variants of the bma180 (eg bma023) have different reset
values.  In preparation for adding support for them, factor
out the reset value into the chip specific data.

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/bma180.c