Skip to content

Commit

Permalink
staging:iio:accel:adis16201 move to chan_spec based setup.
Browse files Browse the repository at this point in the history
Mainly motivated by wish to remove the remaing users of the
scan helpers.

Some minor cleanups done whilst here.

Untested.

V2: IIO_CHAN macro used.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed May 19, 2011
1 parent cbcdf4d commit cf96ffd
Show file tree
Hide file tree
Showing 4 changed files with 220 additions and 328 deletions.
4 changes: 1 addition & 3 deletions drivers/staging/iio/accel/adis16201.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct adis16201_state {
struct mutex buf_lock;
};

int adis16201_set_irq(struct device *dev, bool enable);
int adis16201_set_irq(struct iio_dev *indio_dev, bool enable);

#ifdef CONFIG_IIO_RING_BUFFER
enum adis16201_scan {
Expand All @@ -102,8 +102,6 @@ ssize_t adis16201_read_data_from_ring(struct device *dev,
int adis16201_configure_ring(struct iio_dev *indio_dev);
void adis16201_unconfigure_ring(struct iio_dev *indio_dev);

int adis16201_initialize_ring(struct iio_ring_buffer *ring);
void adis16201_uninitialize_ring(struct iio_ring_buffer *ring);
#else /* CONFIG_IIO_RING_BUFFER */

static inline void adis16201_remove_trigger(struct iio_dev *indio_dev)
Expand Down
Loading

0 comments on commit cf96ffd

Please sign in to comment.