From: Preetham Chandru Date: Mon, 9 Apr 2012 12:35:01 +0000 (+0530) Subject: staging: iio: ak8975: Remove i2c client data corruption X-Git-Tag: v3.4-rc3~25^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40f32d9345bee0b24d3317b498e79b02e4be27f4;p=pandora-kernel.git staging: iio: ak8975: Remove i2c client data corruption i2c client data set is of type struct indio_dev pointer and hence the pointer returned from i2c_get_clientdata() should be assigned to an object of type struct indio_dev and not to an object of type struct ak8975_data. Also in ak8975_probe() client data should be set first before calling ak8975_setup() as it references the client data. Signed-off-by: Preetham Chandru R CC: Laxman Dewangan Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed