forked from luck/tmp_suning_uos_patched
5670ed4d55
commit e09fe9135399807b8397798a53160e055dc6c29f upstream.
When setting the gyro or accelerometer scale the inv_mpu6050 driver ignores
the integer part of the value. As a result e.g. all of 0.13309, 1.13309,
12345.13309, ... are accepted as a valid gyro scale and 0.13309 is the
scale that gets set in all those cases.
Make sure to check that the integer part of the scale value is 0 and reject
it otherwise.
Fixes:
|
||
---|---|---|
.. | ||
inv_mpu_acpi.c | ||
inv_mpu_aux.c | ||
inv_mpu_aux.h | ||
inv_mpu_core.c | ||
inv_mpu_i2c.c | ||
inv_mpu_iio.h | ||
inv_mpu_magn.c | ||
inv_mpu_magn.h | ||
inv_mpu_ring.c | ||
inv_mpu_spi.c | ||
inv_mpu_trigger.c | ||
Kconfig | ||
Makefile |