Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jonathan Cameron and committed by
Greg Kroah-Hartman
04b70812 299475e0

+3 -3
+2 -2
drivers/staging/iio/Documentation/lis3l02dqbuffersimple.c
··· 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 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
+1 -1
drivers/staging/iio/trigger.h
··· 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);