507-v5.6-iio-chemical-sps30-fix-missing-triggered-buffer-depe.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. From 61338e27e2eef3bfcd3df5c39cec5b9dc10ba25c Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <[email protected]>
  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. SPS30 uses triggered buffer, but the dependency is not specified in the
  9. Kconfig file. Fix this by selecting IIO_BUFFER and IIO_TRIGGERED_BUFFER
  10. config symbols.
  11. Cc: [email protected]
  12. Fixes: 232e0f6ddeae ("iio: chemical: add support for Sensirion SPS30 sensor")
  13. Signed-off-by: Petr Štetiar <[email protected]>
  14. ---
  15. drivers/iio/chemical/Kconfig | 2 ++
  16. 1 file changed, 2 insertions(+)
  17. diff --git a/drivers/iio/chemical/Kconfig b/drivers/iio/chemical/Kconfig
  18. index 0b91de4df8f4..a7e65a59bf42 100644
  19. --- a/drivers/iio/chemical/Kconfig
  20. +++ b/drivers/iio/chemical/Kconfig
  21. @@ -91,6 +91,8 @@ config SPS30
  22. tristate "SPS30 particulate matter sensor"
  23. depends on I2C
  24. select CRC8
  25. + select IIO_BUFFER
  26. + select IIO_TRIGGERED_BUFFER
  27. help
  28. Say Y here to build support for the Sensirion SPS30 particulate
  29. matter sensor.