iio: imu: inv_mpu6050: add accel lpf setting for chip >= MPU6500
authorJean-Baptiste Maneyrol <JManeyrol@invensense.com>
Mon, 29 May 2017 09:59:40 +0000 (09:59 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Jun 2017 05:11:17 +0000 (07:11 +0200)
commitcf6ac3abb3233b6178279bc2ecaa8c14890f0d77
tree392f0aaa911f722039dfeae21dd8a563569f09af
parentf7ae7d2229d2f7c372a00b80c22b6eb5a9ac1949
iio: imu: inv_mpu6050: add accel lpf setting for chip >= MPU6500

commit 948588e25b8af5e66962ed3f53e1cae1656fa5af upstream.

Starting from MPU6500, accelerometer dlpf is set in a separate
register named ACCEL_CONFIG_2.
Add this new register in the map and set it for the corresponding
chips.

Signed-off-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h