staging:iio:magnetometer:ak8975 convert to iio_chan_spec + cleanups.
authorJonathan Cameron <jic23@cam.ac.uk>
Fri, 12 Aug 2011 16:48:03 +0000 (17:48 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 20:32:49 +0000 (13:32 -0700)
commit694e1b5f95725d48a1d4ff5e93042118d50ee235
treee4bea7f30ffe0c043c9a00ee7b4701b3e7c1d354
parent7991029a55fa1d172b2162288345276f9e818785
staging:iio:magnetometer:ak8975 convert to iio_chan_spec + cleanups.

iio_chan_spec conversion is straight forward.

Other changes:
* use i2c_smbus_write_byte_data in write_data
* c99 isms to setup various structures.
* move the comment about the scale factor and kill off trivial access func.
* make mode setting code use a bool rather than a ulong.

Ultimately I'd like to get rid of that mode bit entirely and handle it through
core pm routines, but have left it for now.

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