]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Jun 2017 08:40:40 +0000 (09:40 +0100)
commit948588e25b8af5e66962ed3f53e1cae1656fa5af
treed95239881e16acc79aacd6cef3b51bbc72f41d76
parent95264c8c6a9040e84edda883dbbe9d193c41f46c
iio: imu: inv_mpu6050: add accel lpf setting for chip >= MPU6500

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>
Cc: stable@vger.kernel.org
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