iio: inv_mpu6050: Check WHO_AM_I register on probe
authorCrestez Dan Leonard <leonard.crestez@intel.com>
Wed, 20 Apr 2016 13:15:11 +0000 (16:15 +0300)
committerJonathan Cameron <jic23@kernel.org>
Mon, 25 Apr 2016 19:19:15 +0000 (20:19 +0100)
commitcec0154556f8fe6d3a7f5d370f715283888d1c02
tree7a082b20a86aee92d75492aaf804d5d5dafc0764
parent7bdd3181596d3d95ef39849bc3ef8e5b91cb6ae1
iio: inv_mpu6050: Check WHO_AM_I register on probe

This can be used to distinguish mpu6500. This is a warning rather than
an error because the differences are mostly irrelevant and it's nice to
avoid breaking users with slightly incorrect ACPI/DT.

Signed-off-by: Crestez Dan Leonard <leonard.crestez@intel.com>
Acked-by: Ge Gao <ggao@invensense.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h