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)
commitcb87556068146de5c9933397706d3bde88b4a14d
treedd5251da13bcfb9a33168d10f2210b5a761cbe0e
parent6562793b55c58b6b1dcb9cd581c7905afc25e89f
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