]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: accel: kx022a: Support ICs with different G-ranges
authorMatti Vaittinen <mazziesaccount@gmail.com>
Thu, 28 Nov 2024 09:02:15 +0000 (11:02 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 7 Dec 2024 17:49:11 +0000 (17:49 +0000)
commit64eb1c6fae9423747e37887dec6aeee413490f00
tree0193fd13de0e20a1d338bc2e06b74a8c26a08e82
parent725521e1f485d4687790f2e459271f1ad6af64d5
iio: accel: kx022a: Support ICs with different G-ranges

The register interface of the ROHM KX134ACR-LBZ accelerometer is almost
identical to the KX132ACR-LBZ. Main difference between these
accelerometers is that the KX134ACR-LBZ supports G-ranges +/- 8, 16,
32 and 64G. All the other sensors supported by the kx022a driver can
measure +/- 2, 4, 8 and 16G.

Prepare supporting the KX134ACR-LBZ with different G-ranges by storing
a pointer to the scale tables in IC specific structure.

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://patch.msgid.link/fc667b1495adf4e3f29ecbb336495c1f18b47e61.1732783834.git.mazziesaccount@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/kionix-kx022a.c
drivers/iio/accel/kionix-kx022a.h