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

Also remove the iio_dev pointer from chip state as never needed.

V2: Actually allocate the space for iio_priv data.

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/ad7745.c