Skip to content

Commit

Permalink
staging:iio:accel:sca3000 drop sca3000_register_ring_funcs
Browse files Browse the repository at this point in the history
This was needed when the buffer support was optional. Pointless wrapper
now so drop it.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
  • Loading branch information
Jonathan Cameron committed Oct 23, 2016
1 parent ced5c03 commit d1bf1a8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/staging/iio/accel/sca3000.c
Original file line number Diff line number Diff line change
Expand Up @@ -1504,11 +1504,6 @@ static const struct iio_buffer_setup_ops sca3000_ring_setup_ops = {
.postdisable = &sca3000_hw_ring_postdisable,
};

static void sca3000_register_ring_funcs(struct iio_dev *indio_dev)
{
indio_dev->setup_ops = &sca3000_ring_setup_ops;
}

/**
* sca3000_clean_setup() get the device into a predictable state
*
Expand Down Expand Up @@ -1631,7 +1626,7 @@ static int sca3000_probe(struct spi_device *spi)
if (ret)
goto error_unregister_dev;
}
sca3000_register_ring_funcs(indio_dev);
indio_dev->setup_ops = &sca3000_ring_setup_ops;
ret = sca3000_clean_setup(st);
if (ret)
goto error_free_irq;
Expand Down

0 comments on commit d1bf1a8

Please sign in to comment.