mirror of https://github.com/torvalds/linux.git
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:
|
||
|---|---|---|
| .. | ||
| bmi160 | ||
| inv_icm42600 | ||
| inv_mpu6050 | ||
| st_lsm6dsx | ||
| Kconfig | ||
| Makefile | ||
| adis.c | ||
| adis16400.c | ||
| adis16460.c | ||
| adis16475.c | ||
| adis16480.c | ||
| adis_buffer.c | ||
| adis_trigger.c | ||
| fxos8700.h | ||
| fxos8700_core.c | ||
| fxos8700_i2c.c | ||
| fxos8700_spi.c | ||
| kmx61.c | ||