Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.24 /Documentation/rtc.txt

Filename:/Documentation/rtc.txt
Lines Added:4
Lines Deleted:3
Also changed in: (Previous) 2.6.24-rc8  2.6.24-rc7  2.6.24-rc6  2.6.24-rc5  2.6.24-rc4  2.6.24-rc3 
(Following) 2.6.24-git16  2.6.24-git17  2.6.24-git18  2.6.24-git19  2.6.24-git20  2.6.24-git21 

Location
[  2.6.24
  [  Documentation
     o  rtc.txt

Patch

diff --git a/Documentation/rtc.txt b/Documentation/rtc.txt
index c931d61..e20b19c 100644
--- a/Documentation/rtc.txt
+++ b/Documentation/rtc.txt
@@ -180,9 +180,10 @@ driver returns ENOIOCTLCMD.  Some common examples:
     *   RTC_IRQP_SET, RTC_IRQP_READ: the irq_set_freq function will be called
    to set the frequency while the framework will handle the read for you
    since the frequency is stored in the irq_freq member of the rtc_device
-   structure.  Also make sure you set the max_user_freq member in your
-   initialization routines so the framework can sanity check the user
-   input for you.
+   structure.  Your driver needs to initialize the irq_freq member during
+   init.  Make sure you check the requested frequency is in range of your
+   hardware in the irq_set_freq function.  If you cannot actually change
+   the frequency, just return -ENOTTY.
 
 If all else fails, check out the rtc-test.c driver!
 


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.