]> nv-tegra.nvidia Code Review - linux-2.6.git/commit
[SPARC]: Provide generic ioctls in Sparc RTC driver.
authorDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Apr 2005 04:42:34 +0000 (21:42 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Apr 2005 04:42:34 +0000 (21:42 -0700)
commitb4bca26c0160f48b4eb04f21d31a229832732013
treeb4a6d736fcb8664753066df3e6a93ed24c0f409b
parentd7be828e03969ea7f922f299acb8daa0d8ce7006
[SPARC]: Provide generic ioctls in Sparc RTC driver.

Provide support for drivers/char/rtc.c ioctls in the
Mostek rtc driver as well as the Sparc specific RTCGET
and RTCSET.

This allows userspace to be much less messy.  Currently
util-linux and other spots jump through hoops trying
various ioctl variants until it hits the right one whatever
driver actually being used supports.

Eventually all of this should move over to the genrtc.c
driver, but not today...

While we are here, fix up the register types for sparse.

Thanks to Frans Pop for helping point out this issue.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/time.c
drivers/sbus/char/rtc.c
include/asm-sparc64/mostek.h