staging:iio:trigger:bfintmr: Only enable timer when necessary
commit2aecc5b95cdb17d7b80463e9c1a542f389403cbb
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 17 Sep 2012 12:26:00 +0000 (17 13:26 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 17 Sep 2012 21:10:00 +0000 (17 22:10 +0100)
tree73ccd6e1c577cab3c555c0d378e020800abf262e
parent37812d2e10e5790f3cc3319055aac0647080c4af
staging:iio:trigger:bfintmr: Only enable timer when necessary

This patch hooks up the set_trigger_state callback for the blackfin timer
trigger driver and only enables the timer when a trigger consumer requests it to
be enabled. There really is no reason to keep the timer running and generate
interrupts if nobody is listening to them.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/trigger/iio-trig-bfin-timer.c