staging:iio:adc:ad7816: allocate chip state with iio_dev and use iio_priv to access.
commitb0011d6dbae18af3e4bc52670e542abc688eb5a2
authorJonathan Cameron <jic23@cam.ac.uk>
Mon, 27 Jun 2011 12:07:26 +0000 (27 13:07 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Jun 2011 21:39:41 +0000 (28 14:39 -0700)
tree2a15a963f920f7cba0e4e1879b2e231d88e05ad6
parentfebafb94d669bf60b3ccad918d3fddcb66450092
staging:iio:adc:ad7816: allocate chip state with iio_dev and use iio_priv to access.

Again, get rid of unwanted iio_dev pointer in state.

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/adc/ad7816.c