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

V2 - actually allocate some space for the 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/ad7150.c