diff options
author | Daniel Baluta <daniel.baluta@intel.com> | 2016-03-17 19:32:44 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-03-20 13:39:49 +0300 |
commit | 718ba46e5f4e21e45141bf55fd4cccd4b3ba9939 (patch) | |
tree | 24be6f134c0d6c6a3c818caea1430bc5d5eba60d /drivers/iio/pressure/ms5611_core.c | |
parent | ae549a72212c94c757fa3ecbcaa986cc9d2e2b96 (diff) | |
download | linux-718ba46e5f4e21e45141bf55fd4cccd4b3ba9939.tar.xz |
iio: imu: mpu6050: Fix name/chip_id when using ACPI
When using ACPI, id is NULL and the current code automatically
defaults name to NULL and chip id to 0. We should instead use
the data provided in the ACPI device table.
Fixes: c816d9e7a57b ("iio: imu: mpu6050: fix possible NULL dereferences")
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Reviewed-By: Matt Ranostay <matt.ranostay@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/pressure/ms5611_core.c')
0 files changed, 0 insertions, 0 deletions