iio: bmg160: IIO_BUFFER and IIO_TRIGGERED_BUFFER are required
authorMarkus Pargmann <mpa@pengutronix.de>
Wed, 29 Jul 2015 13:46:03 +0000 (15:46 +0200)
committerJonathan Cameron <jic23@kernel.org>
Wed, 12 Aug 2015 18:24:13 +0000 (19:24 +0100)
This patch adds selects for IIO_BUFFER and IIO_TRIGGERED_BUFFER. Without
IIO_BUFFER, the driver does not compile.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/gyro/Kconfig

index b3d0e94f72eb740640e9999d749fce3bc701fc68..8d2439345673989aeac41d40eebf33e00aac9c99 100644 (file)
@@ -53,7 +53,8 @@ config ADXRS450
 config BMG160
        tristate "BOSCH BMG160 Gyro Sensor"
        depends on I2C
-       select IIO_TRIGGERED_BUFFER if IIO_BUFFER
+       select IIO_BUFFER
+       select IIO_TRIGGERED_BUFFER
        help
          Say yes here to build support for Bosch BMG160 Tri-axis Gyro Sensor
          driver. This driver also supports BMI055 gyroscope.