diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2006-06-25 08:48:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-25 13:01:13 -0400 |
commit | 655066c3835e7b51794c4d56f042eb78b5a79f53 (patch) | |
tree | 25d2a104d5c77c58994f3c96aa08bf83bd1f8116 /drivers/rtc/Kconfig | |
parent | 1abb0dc92d706e8c73c7a62ca813738fe2259a7f (diff) |
[PATCH] RTC: rtc-dev UIE emulation
Import genrtc's RTC UIE emulation (CONFIG_GEN_RTC_X) to rtc-dev driver with
slight adjustments/refinements. This makes UIE-less rtc drivers work
better with programs doing read/poll on /dev/rtc, such as hwclock. This
emulation should not harm rtc drivers with UIE support, since
rtc_dev_ioctl() calls underlaying rtc driver's ioctl() first.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/rtc/Kconfig')
-rw-r--r-- | drivers/rtc/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 9e249650baf0..725d6b696792 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig | |||
@@ -73,6 +73,13 @@ config RTC_INTF_DEV | |||
73 | This driver can also be built as a module. If so, the module | 73 | This driver can also be built as a module. If so, the module |
74 | will be called rtc-dev. | 74 | will be called rtc-dev. |
75 | 75 | ||
76 | config RTC_INTF_DEV_UIE_EMUL | ||
77 | bool "RTC UIE emulation on dev interface" | ||
78 | depends on RTC_INTF_DEV | ||
79 | help | ||
80 | Provides an emulation for RTC_UIE if the underlaying rtc chip | ||
81 | driver did not provide RTC_UIE ioctls. | ||
82 | |||
76 | comment "RTC drivers" | 83 | comment "RTC drivers" |
77 | depends on RTC_CLASS | 84 | depends on RTC_CLASS |
78 | 85 | ||