iio: accel: adxl345: Make data_range obsolete
authorLothar Rubusch <l.rubusch@gmail.com>
Mon, 1 Apr 2024 19:48:59 +0000 (19:48 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 6 Apr 2024 15:18:38 +0000 (16:18 +0100)
commitf68ebfe1501bf1110eebf5e968c4d9186cba8706
treee2e09caacc48f5a6491b4dc4bd61c535e29dc689
parent2eef045c5231658b3d7514c6640951e0de3e9d05
iio: accel: adxl345: Make data_range obsolete

Replace write() data_format by regmap_update_bits() to keep bus specific
pre-configuration which might have happened before on the same register.
The bus specific bits in data_format register then need to be masked out,

Remove the data_range field from the struct adxl345_data, because it is
not used anymore.

Signed-off-by: Lothar Rubusch <l.rubusch@gmail.com>
Link: https://lore.kernel.org/r/20240401194906.56810-2-l.rubusch@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl345_core.c