]> err.no Git - linux-2.6/commit
rtc_irq_set_freq() requires power-of-two and associated kerneldoc
authorDavid Brownell <david-b@pacbell.net>
Tue, 16 Oct 2007 08:28:16 +0000 (01:28 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
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 <dbrownell@users.sourceforge.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/interface.c
drivers/rtc/rtc-cmos.c