a2b274f75ed75b7c281a45955accc5202916ea71
[openwrt/staging/linusw.git] /
1 From 61338e27e2eef3bfcd3df5c39cec5b9dc10ba25c Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <ynezz@true.cz>
3 Date: Sun, 23 Feb 2020 22:08:25 +0100
4 Subject: [PATCH] iio: chemical: sps30: fix missing triggered buffer dependency
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 SPS30 uses triggered buffer, but the dependency is not specified in the
10 Kconfig file. Fix this by selecting IIO_BUFFER and IIO_TRIGGERED_BUFFER
11 config symbols.
12
13 Cc: stable@vger.kernel.org
14 Fixes: 232e0f6ddeae ("iio: chemical: add support for Sensirion SPS30 sensor")
15 Signed-off-by: Petr Štetiar <ynezz@true.cz>
16 ---
17 drivers/iio/chemical/Kconfig | 2 ++
18 1 file changed, 2 insertions(+)
19
20 diff --git a/drivers/iio/chemical/Kconfig b/drivers/iio/chemical/Kconfig
21 index 0b91de4df8f4..a7e65a59bf42 100644
22 --- a/drivers/iio/chemical/Kconfig
23 +++ b/drivers/iio/chemical/Kconfig
24 @@ -91,6 +91,8 @@ config SPS30
25 tristate "SPS30 particulate matter sensor"
26 depends on I2C
27 select CRC8
28 + select IIO_BUFFER
29 + select IIO_TRIGGERED_BUFFER
30 help
31 Say Y here to build support for the Sensirion SPS30 particulate
32 matter sensor.