]> git.baikalelectronics.ru Git - kernel.git/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)
commit0a5548173985e5c9478862f97c907aecd84dd85c
treeb3863ed198037668cb80df710678a6e249842654
parent3d06a3d9f15850968732d17158a2c4c75a473b49
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