staging:iio:dac:ad5791: allocate chip state with iio_dev and use iio_priv for access.
authorJonathan Cameron <jic23@cam.ac.uk>
Mon, 27 Jun 2011 12:07:34 +0000 (13:07 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Jun 2011 21:39:43 +0000 (14:39 -0700)
commitf5730d52ba97cf58e4468b46ebbb49d704e23d20
treeaf4419385a1568071066206de90166250b910ccd
parent86729fc46f7791f5978309bbdac862a9833c5ce9
staging:iio:dac:ad5791: allocate chip state with iio_dev and use iio_priv for access.

Slightly fiddly case with two regulators - could reorder, but this is the approach with
smallest likely impact.

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/dac/ad5791.c
drivers/staging/iio/dac/ad5791.h