Skip to content

Commit

Permalink
staging: iio: lis3l02dqbuffersimple.c bring example up to date.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Sep 5, 2010
1 parent 299475e commit 04b7081
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/iio/Documentation/lis3l02dqbuffersimple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/iio/trigger.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 04b7081

Please sign in to comment.