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;
}
/* 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;
/*
* 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);