staging:iio:adc: AD7780: Use private data space from iio_allocate_device + trivial...
commitf07458ad8f07cafff2e9ca791cb6b9bcd6eea36a
authorMichael Hennerich <michael.hennerich@analog.com>
Wed, 18 May 2011 13:42:30 +0000 (18 14:42 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 19 May 2011 23:15:04 +0000 (19 16:15 -0700)
tree7e5fe5263cd8fdf6053f1cb4468a7d2230db0774
parent643ea260b4cb81dfc99b3e18e4be25ba2f1936ed
staging:iio:adc: AD7780: Use private data space from iio_allocate_device + trivial fixes

Use private data space from iio_allocate_device
Drop dev_data in favour of iio_priv()
Fix typo in gpio name
Fix error return path, free gpio
Make scale_uv type unsigned long

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