Commit 751a3700 authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Greg Kroah-Hartman
Browse files

staging:iio: Code cleanups

parent 3d550fba
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -16,9 +16,7 @@
#include "chrdev.h"
#include "chrdev.h"


/* IIO TODO LIST */
/* IIO TODO LIST */
/* Static device specific elements (conversion factors etc)
/*
 * should be exported via sysfs
 *
 * Provide means of adjusting timer accuracy.
 * Provide means of adjusting timer accuracy.
 * Currently assumes nano seconds.
 * Currently assumes nano seconds.
 */
 */
@@ -385,7 +383,9 @@ void iio_put(void);
 **/
 **/
void iio_get(void);
void iio_get(void);


/* Ring buffer related */
/**
 * iio_device_get_chrdev_minor() - get an unused minor number
 **/
int iio_device_get_chrdev_minor(void);
int iio_device_get_chrdev_minor(void);
void iio_device_free_chrdev_minor(int val);
void iio_device_free_chrdev_minor(int val);


+1 −2
Original line number Original line Diff line number Diff line
@@ -31,7 +31,6 @@
 * Any other suggestions?
 * Any other suggestions?
 */
 */



static DEFINE_IDR(iio_trigger_idr);
static DEFINE_IDR(iio_trigger_idr);
static DEFINE_SPINLOCK(iio_trigger_idr_lock);
static DEFINE_SPINLOCK(iio_trigger_idr_lock);


@@ -284,7 +283,7 @@ int iio_trigger_dettach_poll_func(struct iio_trigger *trig,
EXPORT_SYMBOL(iio_trigger_dettach_poll_func);
EXPORT_SYMBOL(iio_trigger_dettach_poll_func);


/**
/**
 * iio_trigger_read_currrent() trigger consumer sysfs query which trigger
 * iio_trigger_read_currrent() - trigger consumer sysfs query which trigger
 *
 *
 * For trigger consumers the current_trigger interface allows the trigger
 * For trigger consumers the current_trigger interface allows the trigger
 * used by the device to be queried.
 * used by the device to be queried.