]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit944071e5e4bbdfea22ca09f6af5c8a6c4d97b8c2
tree7f2987f1d8063fd885e3a5c75078822a9b750965
parentd4933f7f6b741e33092e354ca591a87d217a3ac6
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