From: Jonathan Cameron Date: Fri, 12 Aug 2011 16:48:03 +0000 (+0100) Subject: staging:iio:magnetometer:ak8975 convert to iio_chan_spec + cleanups. X-Git-Tag: v3.2-rc1~169^2^2~864^2~218 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=694e1b5f95725d48a1d4ff5e93042118d50ee235;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed