aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@cam.ac.uk>2010-09-04 17:54:50 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-09-04 21:19:02 -0700
commit04b708124aa72d43d74b2ea559813649593e1d4a (patch)
treed2bd1ca056f27b4403946fc8d0264e5d3318e52d
parent299475e0d961c3dcf2f0b1a8a2ec6d61846aa52b (diff)
downloadmrst-s0i3-test-04b708124aa72d43d74b2ea559813649593e1d4a.tar.gz
mrst-s0i3-test-04b708124aa72d43d74b2ea559813649593e1d4a.tar.xz
mrst-s0i3-test-04b708124aa72d43d74b2ea559813649593e1d4a.zip
staging: iio: lis3l02dqbuffersimple.c bring example up to date.
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/iio/Documentation/lis3l02dqbuffersimple.c4
-rw-r--r--drivers/staging/iio/trigger.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/iio/Documentation/lis3l02dqbuffersimple.c b/drivers/staging/iio/Documentation/lis3l02dqbuffersimple.c
index 3a580284020..2fc3fd81a7a 100644
--- a/drivers/staging/iio/Documentation/lis3l02dqbuffersimple.c
+++ b/drivers/staging/iio/Documentation/lis3l02dqbuffersimple.c
@@ -130,7 +130,7 @@ int main(int argc, char **argv)
goto error_free_buf_dir_name;
/* Enable the buffer */
- ret = write_sysfs_int("ring_enable", buf_dir_name, 1);
+ ret = write_sysfs_int("enable", buf_dir_name, 1);
if (ret < 0)
goto error_free_buf_dir_name;
@@ -209,7 +209,7 @@ int main(int argc, char **argv)
}
/* Stop the ring buffer */
- ret = write_sysfs_int("ring_enable", buf_dir_name, 0);
+ ret = write_sysfs_int("enable", buf_dir_name, 0);
if (ret < 0)
goto error_close_buffer_event;
diff --git a/drivers/staging/iio/trigger.h b/drivers/staging/iio/trigger.h
index 200d02e55b4..469beba3e71 100644
--- a/drivers/staging/iio/trigger.h
+++ b/drivers/staging/iio/trigger.h
@@ -152,7 +152,7 @@ int iio_alloc_pollfunc(struct iio_dev *indio_dev,
/*
* Two functions for common case where all that happens is a pollfunc
- * is attached and detached form a trigger
+ * is attached and detached from a trigger
*/
int iio_triggered_ring_postenable(struct iio_dev *indio_dev);
int iio_triggered_ring_predisable(struct iio_dev *indio_dev);