diff options
author | Jonathan Cameron <jic23@cam.ac.uk> | 2011-08-24 16:28:36 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-24 21:23:42 (GMT) |
commit | e65bc6ac6fa54959ac0b3712b0f35bbf073c073e (patch) | |
tree | e0d3292c6ba34497b91f86974c860461c3d580b7 /drivers/staging/iio/accel/adis16240_ring.c | |
parent | 9c0c22bd1699a800771370f85ee97c9ab388247e (diff) | |
download | linux-fsl-qoriq-e65bc6ac6fa54959ac0b3712b0f35bbf073c073e.tar.xz |
staging:iio:pollfunc: Make explicit that private data is always pointer to a struct iio_dev.
This is always true, so lets make it explicit.
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/accel/adis16240_ring.c')
-rw-r--r-- | drivers/staging/iio/accel/adis16240_ring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/accel/adis16240_ring.c b/drivers/staging/iio/accel/adis16240_ring.c index 9bb4ff8..9d4ba15 100644 --- a/drivers/staging/iio/accel/adis16240_ring.c +++ b/drivers/staging/iio/accel/adis16240_ring.c @@ -54,7 +54,7 @@ static int adis16240_read_ring_data(struct device *dev, u8 *rx) static irqreturn_t adis16240_trigger_handler(int irq, void *p) { struct iio_poll_func *pf = p; - struct iio_dev *indio_dev = pf->private_data; + struct iio_dev *indio_dev = pf->indio_dev; struct adis16240_state *st = iio_priv(indio_dev); struct iio_ring_buffer *ring = indio_dev->ring; |