staging:iio-trig-periodic-rtc: Allow to reset frequency to 0
authorPeter Meerwald <pmeerw@pmeerw.net>
Sat, 6 Dec 2014 06:00:00 +0000 (06:00 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 14 Jun 2014 15:11:55 +0000 (16:11 +0100)
commit9d2f79abdf8313682d7b38570de0a717b0e9baf1
tree2f14061fbe075721e77167375e94fa342ad00d2c
parent1c70f7bebce44515ffe30bf81358fe5f691656ad
staging:iio-trig-periodic-rtc: Allow to reset frequency to 0

periodic rtc trigger initially has frequency 0

it is possible to change trigger frequency on-the-fly, but it is not
possible to set frequency back to 0

this patch allows to set trigger frequency to 0, thereby disabling
the rtc interrupt

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/trigger/iio-trig-periodic-rtc.c