[PATCH 6/7] iio: srf08: add buffered to device mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Add INDIO_BUFFER_TRIGGERED and INDIO_BUFFER_SOFTWARE to device mode

Signed-off-by: Andreas Klinger <ak@xxxxxxxxxxxxx>
---
 drivers/iio/proximity/srf08.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/iio/proximity/srf08.c b/drivers/iio/proximity/srf08.c
index a63c272c3b22..ea238ab1066c 100644
--- a/drivers/iio/proximity/srf08.c
+++ b/drivers/iio/proximity/srf08.c
@@ -437,7 +437,9 @@ static int srf08_probe(struct i2c_client *client,
 
 	indio_dev->name = id->name;
 	indio_dev->dev.parent = &client->dev;
-	indio_dev->modes = INDIO_DIRECT_MODE;
+	indio_dev->modes = INDIO_DIRECT_MODE
+				| INDIO_BUFFER_TRIGGERED
+				| INDIO_BUFFER_SOFTWARE;
 
 	/* srf02 is not using sensitivity nor max_range */
 	if (id->driver_data == SRF02)
-- 
2.1.4


-- 
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux