CHROMIUM: iio: cros_ec: Workaround for invalid gyro min_freq

Until CL:674003, EC indicates the minimal frequency of BMI160 gyro to be
25mHz (AKA 0.025Hz) instead of 25Hz.
To prevent CTS testGyroscope_5hz and testGyroscope_10hz to expect gyro
to work at frequencies less than 25Hz, force the gyro minimal frequency
at 25Hz when absurdly low.

BUG=b:65000611
TEST=On Eve, check gyro min_frequency is 25Hz instead of 25mHz.
Check other frequencies are correct.

Change-Id: I18df3fe6d5c659a59af6d13f484c92e1649eeb26
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/676140
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
Reviewed-by: Nick Vaccaro <nvaccaro@chromium.org>
2 files changed