]> git.baikalelectronics.ru Git - kernel.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)
commit1f244f2e5a2bd98b9d6c0b6e34e214318737deba
treeb4a6d736fcb8664753066df3e6a93ed24c0f409b
parenta5c8f3db391c683e625abbe9c01ed6ad4ef1fb10
[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