rtc_irq_set_freq() requires power-of-two and associated kerneldoc
authorDavid Brownell <[email protected]>
Tue, 16 Oct 2007 08:28:16 +0000 (01:28 -0700)
committerLinus Torvalds <[email protected]>
Tue, 16 Oct 2007 16:43:13 +0000 (09:43 -0700)
commit97144c67566241db46633727f2860e6428373fe4
treeb3863ed198037668cb80df710678a6e249842654
parentd691eb901e044065de10756ea78a5758d457c7fd
rtc_irq_set_freq() requires power-of-two and associated kerneldoc

RTC periodic IRQs are only defined to work for 2^N Hz values.  This patch
moves that validity check into the infrastructure, so drivers don't need to
check it; and adds kerneldoc for the two interface functions related to
periodic IRQs.  (One of which was quite mysterious until its first use was
recently checked in!)

Signed-off-by: David Brownell <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rtc/interface.c
drivers/rtc/rtc-cmos.c