commit | 2aecc5b95cdb17d7b80463e9c1a542f389403cbb | [log] [tgz] |
---|---|---|
author | Lars-Peter Clausen <lars@metafoo.de> | Mon Sep 17 13:26:00 2012 +0100 |
committer | Jonathan Cameron <jic23@kernel.org> | Mon Sep 17 22:10:00 2012 +0100 |
tree | 73ccd6e1c577cab3c555c0d378e020800abf262e | |
parent | 37812d2e10e5790f3cc3319055aac0647080c4af [diff] |
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>