Skip to content

Commit

Permalink
staging:iio:accel:adis16203 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: Use IIO_CHAN macro
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 cf96ffd commit d37b24b
Show file tree
Hide file tree
Showing 4 changed files with 195 additions and 257 deletions.
13 changes: 1 addition & 12 deletions drivers/staging/iio/accel/adis16203.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ struct adis16203_state {
struct mutex buf_lock;
};

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

#ifdef CONFIG_IIO_RING_BUFFER
enum adis16203_scan {
Expand All @@ -95,8 +95,6 @@ ssize_t adis16203_read_data_from_ring(struct device *dev,
int adis16203_configure_ring(struct iio_dev *indio_dev);
void adis16203_unconfigure_ring(struct iio_dev *indio_dev);

int adis16203_initialize_ring(struct iio_ring_buffer *ring);
void adis16203_uninitialize_ring(struct iio_ring_buffer *ring);
#else /* CONFIG_IIO_RING_BUFFER */

static inline void adis16203_remove_trigger(struct iio_dev *indio_dev)
Expand Down Expand Up @@ -125,14 +123,5 @@ static inline void adis16203_unconfigure_ring(struct iio_dev *indio_dev)
{
}

static inline int adis16203_initialize_ring(struct iio_ring_buffer *ring)
{
return 0;
}

static inline void adis16203_uninitialize_ring(struct iio_ring_buffer *ring)
{
}

#endif /* CONFIG_IIO_RING_BUFFER */
#endif /* SPI_ADIS16203_H_ */
Loading

0 comments on commit d37b24b

Please sign in to comment.