staging:iio:cdc:ad7150: Change timeout units to seconds and use core support
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 14 Mar 2021 18:14:58 +0000 (18:14 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 7 Apr 2021 07:36:36 +0000 (08:36 +0100)
commitfea8f215012ea9ae0840bd94f9aa6105a1025c51
tree94d189dcd7a3a5f7141dcfba32b7cbe3151c4356
parent45b77828b01cdf2af655e4edbc63646fc7e07b48
staging:iio:cdc:ad7150: Change timeout units to seconds and use core support

Now we have core support for timeouts related to adaptive events, let us
use it.  Note the units of that attribute are seconds, so we also need
to scale the cycles value by the period of each sample.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20210314181511.531414-12-jic23@kernel.org
drivers/staging/iio/cdc/ad7150.c