Commit 04b708124aa72d43d74b2ea559813649593e1d4a
Committed by
Greg Kroah-Hartman
1 parent
299475e0d9
Exists in
master
and in
7 other branches
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>
Showing 2 changed files with 3 additions and 3 deletions Side-by-side Diff
drivers/staging/iio/Documentation/lis3l02dqbuffersimple.c
... | ... | @@ -130,7 +130,7 @@ |
130 | 130 | goto error_free_buf_dir_name; |
131 | 131 | |
132 | 132 | /* Enable the buffer */ |
133 | - ret = write_sysfs_int("ring_enable", buf_dir_name, 1); | |
133 | + ret = write_sysfs_int("enable", buf_dir_name, 1); | |
134 | 134 | if (ret < 0) |
135 | 135 | goto error_free_buf_dir_name; |
136 | 136 | |
... | ... | @@ -209,7 +209,7 @@ |
209 | 209 | } |
210 | 210 | |
211 | 211 | /* Stop the ring buffer */ |
212 | - ret = write_sysfs_int("ring_enable", buf_dir_name, 0); | |
212 | + ret = write_sysfs_int("enable", buf_dir_name, 0); | |
213 | 213 | if (ret < 0) |
214 | 214 | goto error_close_buffer_event; |
215 | 215 |
drivers/staging/iio/trigger.h
... | ... | @@ -152,7 +152,7 @@ |
152 | 152 | |
153 | 153 | /* |
154 | 154 | * Two functions for common case where all that happens is a pollfunc |
155 | - * is attached and detached form a trigger | |
155 | + * is attached and detached from a trigger | |
156 | 156 | */ |
157 | 157 | int iio_triggered_ring_postenable(struct iio_dev *indio_dev); |
158 | 158 | int iio_triggered_ring_predisable(struct iio_dev *indio_dev); |