iio: accel: sca3300: modified to support multi chips
authorLI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
Sun, 29 May 2022 06:18:51 +0000 (06:18 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 14 Jun 2022 10:53:09 +0000 (11:53 +0100)
commitad985d4d38d7ad8a83b0ff428ea51a2f41ce12e1
tree7f2987f1d8063fd885e3a5c75078822a9b750965
parente59dd3aca976bbac914e27ef56cb1ecbc7c85597
iio: accel: sca3300: modified to support multi chips

Prepare the way for multiple chips and additional channels:
- Modify the driver to read the device ID and load the corresponding
  sensor information from the table to support multiple chips
- Add prepares for the addition of extra channels
- Prepare for handling the operation modes for multiple chips

Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
Reviewed-by: Tomas Melin <tomas.melin@vaisala.com>
Link: https://lore.kernel.org/r/20220529061853.3044893-4-Qing-wu.Li@leica-geosystems.com.cn
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/sca3300.c