From: Jonathan Cameron Date: Thu, 7 Oct 2010 12:10:20 +0000 (+0100) Subject: staging: iio: sca3000 fix bug due to scan_element directory move. X-Git-Tag: v2.6.37-rc1~60^2~3^2~303 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7aa3baeb976700971acad518b3bfaad5fe1afd54;p=pandora-kernel.git 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 Signed-off-by: Jonathan Cameron Acked-by: Michael Hennerich Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed