]> git.baikalelectronics.ru Git - kernel.git/commit
iio: cros_ec: Use Hertz as unit for sampling frequency
authorGwendal Grignou <gwendal@chromium.org>
Fri, 27 Mar 2020 22:34:42 +0000 (15:34 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Mon, 30 Mar 2020 06:24:49 +0000 (08:24 +0200)
commitcf6f087be7b9e3f81fdf4902627766f3f79c280a
treefb7c2dfddb967eb5192dc597e08cb911451e0868
parent94ae5143a9af4461b2df48eb03c244910b6b981e
iio: cros_ec: Use Hertz as unit for sampling frequency

To be compliant with other sensors, set and get sensor sampling
frequency in Hz, not mHz.

Fixes: 405adbe6b9cb ("iio: common: cros_ec_sensors: Expose cros_ec_sensors frequency range via iio sysfs")
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Acked-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