staging:iio:magnetometer:ak8975: allocate chip state with iio_dev.
authorJonathan Cameron <jic23@cam.ac.uk>
Mon, 27 Jun 2011 12:07:54 +0000 (13:07 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Jun 2011 21:39:51 +0000 (14:39 -0700)
commit338473c8194b45eb28bae737fc7aa8e7f4fe7330
treeb73847de52a91ec3b44c7e51d2cbc5faa5c476d5
parent58f08b0af857ba8546ae35a20fdfe346ba58d75d
staging:iio:magnetometer:ak8975: allocate chip state with iio_dev.

Here the ordering is a little tricky, so to keep changes minimal, a copy of the gpio
number is introduced.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/magnetometer/ak8975.c