staging: iio: sca3000 fix bug due to scan_element directory move.
authorJonathan Cameron <jic23@cam.ac.uk>
Thu, 7 Oct 2010 12:10:20 +0000 (13:10 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 7 Oct 2010 17:06:44 +0000 (10:06 -0700)
commit7aa3baeb976700971acad518b3bfaad5fe1afd54
tree9b78ea1682e70b9439e0d3a1b65a9b3bdcfb366d
parent0986452eb49771378f1cabee46c789acb088494c
staging: iio: sca3000 fix bug due to scan_element directory move.

The device found passed to the attr functions is that of the ring
buffer, not the the iio_dev so we need to bounce through one more
hop to get the right address.

Reported-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/accel/sca3000_ring.c