diff options
author | Tomasz Duszynski <tomasz.duszynski@octakon.com> | 2021-05-03 08:00:12 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-05-17 13:49:10 +0100 |
commit | 8f3f130852785dac0759843835ca97c3bacc2b10 (patch) | |
tree | 5dbc663d2361b28d634268da30b9b11d7d62188a /drivers/iio/chemical/Kconfig | |
parent | 101af4c20c5a2d56b38d80743cc17d5691ef5506 (diff) |
iio: sps30: separate core and interface specific code
Move code responsible for handling i2c communication to a separate file.
Rationale for this change is preparation for adding support for serial
communication.
Signed-off-by: Tomasz Duszynski <tomasz.duszynski@octakon.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/chemical/Kconfig')
-rw-r--r-- | drivers/iio/chemical/Kconfig | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/iio/chemical/Kconfig b/drivers/iio/chemical/Kconfig index 10bb431bc3ce..2b45a76ab7bc 100644 --- a/drivers/iio/chemical/Kconfig +++ b/drivers/iio/chemical/Kconfig @@ -132,17 +132,21 @@ config SENSIRION_SGP30 module will be called sgp30. config SPS30 - tristate "SPS30 particulate matter sensor" - depends on I2C - select CRC8 + tristate select IIO_BUFFER select IIO_TRIGGERED_BUFFER + +config SPS30_I2C + tristate "SPS30 particulate matter sensor I2C driver" + depends on I2C + select SPS30 + select CRC8 help - Say Y here to build support for the Sensirion SPS30 particulate - matter sensor. + Say Y here to build support for the Sensirion SPS30 I2C interface + driver. To compile this driver as a module, choose M here: the module will - be called sps30. + be called sps30_i2c. config VZ89X tristate "SGX Sensortech MiCS VZ89X VOC sensor" |