diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2022-01-01 12:38:14 -0800 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-01-23 18:03:33 +0000 |
commit | caa8ce7f6149576efc3a1af06d2c03e41cb6c46e (patch) | |
tree | 3904700290aba78388bf5f6a742eba176a3a05a7 /drivers/iio/proximity/Kconfig | |
parent | iio:proximity:sx9310: Add frequency in read_avail (diff) | |
download | linux-dev-caa8ce7f6149576efc3a1af06d2c03e41cb6c46e.tar.xz linux-dev-caa8ce7f6149576efc3a1af06d2c03e41cb6c46e.zip |
iio:proximity:sx9310: Extract common Semtech sensor logic
Before adding new Semtech sensors, move common logic to all Semtech SAR
sensor in its own file:
- interface with IIO subsystem,
- interrupt management,
- channel access conrol,
- event processing.
The change adds a bidirectional interface between sx93xx and sx_common.
The change is quite mechanical, as the impacted functions are moved
and renamed.
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20220101203817.290512-3-gwendal@chromium.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/proximity/Kconfig')
-rw-r--r-- | drivers/iio/proximity/Kconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/iio/proximity/Kconfig b/drivers/iio/proximity/Kconfig index 7c7203ca3ac6..027712684835 100644 --- a/drivers/iio/proximity/Kconfig +++ b/drivers/iio/proximity/Kconfig @@ -112,11 +112,17 @@ config SRF04 To compile this driver as a module, choose M here: the module will be called srf04. +config SX_COMMON + tristate + help + Common Semtech proximity sensor code. + config SX9310 tristate "SX9310/SX9311 Semtech proximity sensor" select IIO_BUFFER select IIO_TRIGGERED_BUFFER select REGMAP_I2C + select SX_COMMON depends on I2C help Say Y here to build a driver for Semtech's SX9310/SX9311 capacitive |