From: Andrew Chew Date: Thu, 9 Sep 2010 05:02:17 +0000 (-0700) Subject: staging: iio: ak8975: Add ak8975 magnetometer sensor X-Git-Tag: v2.6.37-rc1~60^2~3^2~607 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3285aae1edd04ffdb6a732f7d90c44f90a7e5d8f;p=pandora-kernel.git staging: iio: ak8975: Add ak8975 magnetometer sensor This is for the Asahi Kasei AK8975 3-axis magnetometer. It resides within the magnetometer section of the IIO subsystem, and implements the raw magn_x,y,z_raw attributes, as well as magn_x,y,z_scale attributes for converting to Gauss. Changed to use the magn_x,y,z_scale attributes, and made those attributes give the scale factor to conert to Gauss. Also applied more fixes from feedback. Keeping mode as an unsigned long. I'm going to add proper power management at some point anyway, which would deprecate this attribute. Signed-off-by: Andrew Chew Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed