staging:iio:gyro: adis16080 cleanup, move to abi and bug fixes.
authorJonathan Cameron <jic23@cam.ac.uk>
Fri, 25 Feb 2011 16:09:07 +0000 (16:09 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 1 Mar 2011 01:48:49 +0000 (17:48 -0800)
commit35d2b6f9b194ef99ceb6ea565c875af7cea34fa0
tree5897ce37331bb009d47b1c9e6ac5376d9bbb3271
parent50e1fbdc1c9965b6ddbc5c9900377ff18bbf9ae8
staging:iio:gyro: adis16080 cleanup, move to abi and bug fixes.

Moved to standard sysfs naming and got rid of direct register writing
from userspace.

The rx and tx buffers are never used together so just have one and
avoid the need to malloc it by using putting it in the state structure
and using the ____cacheline_aligned trick.

Couple of obvious bug fixes whilst I was here.

I don't have one of these so can't test. This is done off datasheet.
Note that as with the adis16060 driver there are parts that definitely
wouldn't work before this patch.  Now it 'might' assuming I haven't
messed up too badly.

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/gyro/adis16080.h [deleted file]
drivers/staging/iio/gyro/adis16080_core.c