linux/drivers/iio/common/cros_ec_sensors
Gwendal Grignou 56e4f2dda2 iio: cros_ec: Use default frequencies when EC returns invalid information
Minimal and maximal frequencies supported by a sensor is queried.
On some older machines, these frequencies are not returned properly and
the EC returns 0 instead.
When returned maximal frequency is 0, ignore the information and use
default frequencies instead.

Fixes: ae7b02ad2f ("iio: common: cros_ec_sensors: Expose cros_ec_sensors frequency range via iio sysfs")
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Link: https://lore.kernel.org/r/20200630153730.3302889-1-gwendal@chromium.org
CC: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-11-01 15:22:45 +00:00
..
cros_ec_lid_angle.c iio: cros_ec: unify hw fifo attributes into the core file 2020-09-29 17:27:07 +01:00
cros_ec_sensors_core.c iio: cros_ec: Use default frequencies when EC returns invalid information 2020-11-01 15:22:45 +00:00
cros_ec_sensors.c chrome platform changes for 5.10 2020-10-23 10:54:13 -07:00
Kconfig iio / platform: cros_ec: Add cros-ec-sensorhub driver 2019-11-21 11:23:14 +01:00
Makefile chrome platform changes for v5.3 2019-07-11 18:45:29 -07:00