diff options
author | 2012-04-09 18:05:01 +0530 | |
---|---|---|
committer | 2012-04-10 09:19:29 -0700 | |
commit | 40f32d9345bee0b24d3317b498e79b02e4be27f4 (patch) | |
tree | 2b16d03b41eb7efd1bdb16ac5aba0b04ceba087c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | staging: drm/omap: move where DMM driver is registered (diff) | |
download | linux-dev-40f32d9345bee0b24d3317b498e79b02e4be27f4.tar.xz linux-dev-40f32d9345bee0b24d3317b498e79b02e4be27f4.zip |
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 <pchandru@nvidia.com>
CC: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions