]> git.baikalelectronics.ru Git - kernel.git/commit
iio: cros_ec: Report hwfifo_watermark_max
authorGwendal Grignou <gwendal@chromium.org>
Fri, 27 Mar 2020 22:34:41 +0000 (15:34 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Sat, 28 Mar 2020 21:04:33 +0000 (22:04 +0100)
commit94ae5143a9af4461b2df48eb03c244910b6b981e
treedd5251da13bcfb9a33168d10f2210b5a761cbe0e
parentccac5aeb59e7eafccd03740a80d1700847f1388b
iio: cros_ec: Report hwfifo_watermark_max

Report the maximum amount of sample the EC can hold.
This is not tunable, but can be useful for application to find out the
maximum amount of time it can sleep when hwfifo_timeout is set to a
large number.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c
include/linux/iio/common/cros_ec_sensors_core.h