aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/interface.c
diff options
context:
space:
mode:
authorDavid Brownell <[email protected]>2006-11-25 19:09:27 +0000
committerLinus Torvalds <[email protected]>2006-11-25 21:28:33 +0000
commit2601a46474db2dcbc08ee690e56f08a10abe65cb (patch)
tree3b6ffb34023a252599b08b045db100a6ca6bfff7 /drivers/rtc/interface.c
parent[PATCH] Documentation/rtc.txt updates (for rtc class) (diff)
downloadkernel-2601a46474db2dcbc08ee690e56f08a10abe65cb.tar.gz
kernel-2601a46474db2dcbc08ee690e56f08a10abe65cb.zip
[PATCH] rtc framework handles periodic irqs
The RTC framework has an irq_set_freq() method that should be used to manage the periodic IRQ frequency, but the current ioctl logic doesn't know how to do that. This patch teaches it how. This means that drivers implementing irq_set_freq() will automatically support RTC_IRQP_{READ,SET} ioctls; that logic doesn't need duplication within the driver. [[email protected]: export rtc_irq_set_freq] Signed-off-by: David Brownell <[email protected]> Acked-by: Alessandro Zummo <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/rtc/interface.c')
-rw-r--r--drivers/rtc/interface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/interface.c b/drivers/rtc/interface.c
index 579cd667b16f..4783ec68fb3c 100644
--- a/drivers/rtc/interface.c
+++ b/drivers/rtc/interface.c
@@ -265,3 +265,4 @@ int rtc_irq_set_freq(struct class_device *class_dev, struct rtc_task *task, int
}
return err;
}
+EXPORT_SYMBOL_GPL(rtc_irq_set_freq);